» | 4 guest@cc 2019-02-26T04:05:32>>3 I just wget my sites and hope the developer was sensible enough to use relative links. In case they weren't, I just try to live without the CSS/images knowing they've been backed up to my disk anyway, but if I were less lazy, I'd have this setup where I automatically host the pages on a local web server. I'm sure there's programs for it out there.
Anyway, as you'd probably know, MHT is short for "MIME HTML". MIME is used in all sorts of protocols nowadays, but it was originally designed for email, hence "Multipurpose Internet Mail Extensions". Email was already well-established by the time people started deciding that they wanted to start attaching pictures and stuff to them, but the problem was that email was and always has been just a method of passing single text files around, except in a highly structured way. Breaking that structure to add something like that in would've ended up being pretty disasterous, so to work around this, the guys writing the standards decided that attachments should be converted to text in the middle of the email, and it'd be left to the clients to convert that text back to whatever it originally was. There's different ways to encode binary files as text, but the most popular one is Base64. Clients which couldn't handle this at the time would basically just get a mess of letters and numbers at the bottom of the message, which is a lot better than not being able to read them at all. People eventually got the funny idea of turning their emails into web pages with pictures, bold coloured text, and maybe a little javascript program which tells the sender when you've read their email, and that's where MHTML comes from. Basically a normal HTML page, but anything that was embedded originally is now just encoded as Base64 inline.
I'm a real fan of the technology behind it, but I'm kind of autistic, so I don't really like to change or convert files at all. It'd be best if people basically just abandoned normal HTML entirely, and started hand-writing their pages in MHTML instead, but nothing like that's ever really going to happen.
https://en.wikipedia.org/wiki/Data_URI_scheme#HTML Check this out, isn't it cool? |
|