HTML · Sharing

HTML vs URL: what actually gets shared?

Understand the difference between an HTML document and its URL, and how publishing turns a local page into a shareable link.

HTML is the document: markup that describes a page and may refer to stylesheets, scripts, fonts, and images. A URL is an address that tells a browser where to request a resource.

Sending an HTML file shares the document as an attachment. Sending a URL shares an address, but that address only works when the page has been published somewhere a recipient can reach.

A publishing service stores the document and its supporting files, then returns the address. With HTMLURL, the generated link opens the published page in a browser, so recipients do not need to handle a local file.

The host also determines who can open the address and whether it can use a custom domain. See the differences between Netlify and HTMLURL.

HTML to Link tool