How to share AI generated HTML

You built something in ten minutes and the person you want to show it to receives a text file full of angle brackets.

The thing you made runs in a browser. The person you are showing it to needs a browser to open it, and sending them a file mostly does not achieve that.

A message containing one line of context and a link, with the page open beside it.
A message containing one line of context and a link, with the page open beside it.

This guide covers why the file fails, what to write, and handling changes.

The file does not survive the journey

Three ways it goes wrong, and all of them are invisible to the sender.

Mail systems strip it. HTML attachments are treated as a risk. They are quarantined, removed, or rewritten into something inert.

It opens as text. The recipient's machine associates the file with an editor, and double-clicking shows markup. To someone who is not technical, that is indistinguishable from broken.

They are on a phone. A downloaded file on a phone lands in a folder, and the phone has no obvious way to open it as a page.

Pasting the code into a message is worse. Messaging apps show text. The recipient sees several hundred lines of angle brackets and has no route from there to a working page.

Send the file Paste the code Send an address
Survives email Often not Yes Yes
Opens as a page Sometimes No Yes
Works on a phone Rarely No Yes
Recipient needs to know anything Yes Yes No

Write one line with it

A link with no context gets opened, looked at for two seconds, and closed without a reply.

Say what it is and what you want. Not a paragraph.

Here is the booking page for the workshop. Does the pricing section read correctly to you.

That names the thing and asks one question, which is what produces an answer rather than a "looks good".

Check it on a phone first

They will open it on a phone. Assume that.

Generated pages default to desktop layouts, so before sending, open your own link on a phone and look for the three usual failures: horizontal scrolling, anything that needed hover, and buttons too small for a thumb.

Fixing those takes one more prompt and it is the difference between a reply about your idea and a reply about the page being awkward.

The same page checked on a phone before sending, with touch targets visible.
The same page checked on a phone before sending, with touch targets visible.

When the reader is on a phone, Opening an HTML file on a phone is the relevant case.

Whether to mention how it was made

Say it when it affects the decision. If someone is judging how much effort or budget something took, that is relevant and worth being straightforward about.

Otherwise it is not the interesting part. The interesting part is whether the thing works and whether it is right. Leading with the tooling invites a conversation about tooling instead of a conversation about the work.

Changes go to the same address

They will want something changed. That is the point of showing it to them.

Regenerate, replace what sits behind the address, and tell them it is updated. They reopen the link they already have.

No second file, no version two, no ambiguity about which one they are looking at. This is the part that an attachment can never do and it matters more with every round of feedback.

Two neighbouring cases are worth a look: How to host AI generated HTML and How to host HTML output from ChatGPT.

Revise the text click and type save Same document new version stored unchanged Same address nothing to resend
A revision changes the page, not the address that was already sent.

Put it at an address

Do not send the file, publish it and send the address, write one line of context, check it on a phone first, and replace in place when it changes.

Then the person you wanted to show sees the thing you made.

Questions people ask

Why does the file open as code for them?

Because their system is treating it as text rather than as a page. That happens when the extension is wrong, when a mail system rewrote the attachment, or when they opened it in an editor.

Can I paste the code into a message?

They will see the code, not the page. Messaging apps display text. A recipient who is not technical has no way to turn that into something that runs.

What should I say alongside the link?

One line saying what it is and what you want from them. A link with no context gets opened, glanced at and closed without a reply.

Should I mention it was AI generated?

Say it if it is relevant to the decision, such as when the person is judging effort or cost. Otherwise it is not the interesting fact about the thing you made.

What if they ask for changes?

Regenerate and replace the page at the same address. They reopen the original link and see the change, with no second message and no version confusion.

Keep reading