What Is an MHTML Document?
Web archive (English: MIME HTML or MIME Encapsulation of Aggregate HTML Documents, also known as single file web page or web archive file) is a multi-purpose Internet mail extension format, a multi-attachment web page (such as contains a large number of pictures, Flash animation, Java applet The program's web page) is stored as a single file that can be used to send HTML emails. This single file is called a web archive file with an extension of .mht. This format is sometimes referred to simply as MHT. [1]
- Graphics and other functions in the HTML page must be stored separately and referenced on the original file. MHTML can save attachments on a web page as a single web page.
- Microsoft Office (Word [1], Excel, PowerPoint, Access) can create and edit MHTML files.
- On the Linux platform, the program kmhtConvert can convert files to MHTML format.
- Some browsers have a native way to save web pages as MHTML, and some browsers can directly support MHTML formats through third-party extensions. Because the way of saving as MHTML is not standardized, the effect of reading by each browser is slightly different.
- The format of the MHTML file is as follows:
Subject: Title Date: Wed, 15 Dec 2004 10:05:01 +1000 Content-Type: multipart / related; Content-Transfer-Encoding: quoted-printable Content-Location: file: // C: /fishier.html This is a multi-part message in MIME format. Content-Type: text / html; <HTML> <HEAD> <TITLE> Title </ TITLE> </ HEAD> <BODY> ... </ BODY> </ HTML> Content-Type: image / gif Content-Transfer-Encoding: base64 Content-Location: file: // C: /image.gif RHLJbDYX0KhHzv7yGcCgghhgHLJbDYX0KhHzv7yGcChkNdjn + Nfn + NXm98 / i98rf9sfe9b / Z9L3X 87fU8qP8afL8AHzvfg7yGcChkNIwMZHLJbDYX0KhHzv37yGcChkNIw2Oj5AAAZIAlhAAACwAAAAA er8JhHg8PhgQBrPZwG673 + 6CoUCv2 + 91gn5PGPT7fgOCg4SFhQKIiYoCAY2Oj5AAAZIAlJWXACEA 4SFh ==
- Subject is the document title, Content-Type is the MIME attribute of the file, Content-Location is the address of the original file, and Content-Transfer-Encoding is the encoding format.