Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I mean, how do I save it locally on one platform and read it on any platform? Or share it with someone else to read (without them downloading software)? I.e., we don't have a standard, local, single-file html format.


You're right.

We could have such a format if browser and os vendors were interested in supporting such a use case. Unfortunately, they aren't.

On the browser side, supporting all-in-one html files can be as simple a reading a single multipart-encoded page. Heck, if they support automatically serializing all external resources as datauris when saving pages, then most browsers will be able to open them without any modification.

On the OS side, operating systems can treat html files as first class citizens; execute them in an offline sandbox (most operating systems have embedded webviews), then extract icon, title, description and other metadata to present to the user. An icon the consists of a blank page with a small browser icon in the corner doesn't tell me anything about what the page is about. This needs to change.

In short, html can be easily made nicer to deal with locally thanks to all the parts already being in place. The problem is that no one (tech giants, os vendors) are interested in doing this.


.mhtml (or .mhtm) is that format. It's an archive containing an HTML file along with all the resources it references (JavaScript, CSS, and images). These browsers support it: Internet Explorer, Edge, Opera, Chrome, Yandex, and Vivaldi. Create one by saving the web page and choosing the .mhtml format. Safari supports another format called webarchive.

https://en.wikipedia.org/wiki/MHTML


There's epub as one file html document.


> I mean, how do I save it locally on one platform and read it on any platform?

Ctrl/Meta/Cmd + S should do the trick, or "File > Save page", and you get a HTML file you can open in any browser. If there is images, they'll most likely be loaded remotely, or worst case not load at all. But the rest of the structure is there.


> If there is images, they'll most likely be loaded remotely

Most sites have images as a relative path which won't work with saved html and there is also CSS.


A web page is much more than one file. Also, I'm looking for something with end-user control, where they can save the current document statically and long-term.


If both devices have internet, you share the URL. If not, see other replies.


Print it to a pdf




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: