MHTML

MHTML, an initialism of "MIME encapsulation of aggregate HTML documents", is a web archiving file format used to combine, in a single computer file, the HTML code and its companion resources (such as images) that are represented by…

Uses your system voice; voice and rate in settings.

Snapshot

≈ 3 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

MHTML, an initialism of "MIME encapsulation of aggregate HTML documents", is a web archiving file format used to combine, in a single computer file, the HTML code and its companion resources (such as images) that are represented by external hyperlinks in the web page's HTML code. The content of an MHTML file is encoded using the same techniques that were first developed for HTML email messages, using the MIME content type multipart/related .

MHTML files use an .mhtml or .mht filename extension. The first part of the file is an e-mail header. The second part is normally HTML code.

Subsequent parts are additional resources identified by their original uniform resource locators (URLs) and encoded in Base64 binary-to-text encoding. MHTML was proposed as an open standard, then circulated in a revised edition in 1999 as RFC 2557. The .mhtml and .eml filename extensions are interchangeable: either filename extension can be changed from one to the other.

An .eml message can be sent by e-mail, and it can be displayed by an email client. An email message can be saved using a .mhtml or .mht filename extension and then opened for display in a web browser or for editing other programs, including word processors and text editors.

From: Snapshot-Content-Location: https://en.wikipedia.org/wiki/Smartphone Subject: Smartphone - Wikipedia Date: Sat, 24 Sep 2022 00:34:32 -0000 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----MultipartBoundary--GsIBda0vjy2AKIAIliwl7JMwezXDRjDAsLje9khd5l----" Then, the page resources are contained sequentially, starting with the page's rendered HTML source code. Each resource has its own metadata header which specifies its MIME type and the original location. ------MultipartBoundary--GsIBda0vjy2AKIAIliwl7JMwezXDRjDAsLje9khd5l---- Content-Type: text/html Content-ID: Content-Transfer-Encoding: binary Content-Location: https://en.wikipedia.org/wiki/Smartphone The MHTML file ends with a boundary string that is not followed by any data.

MHTML standard explained RFC 2557 (1999)—MIME Encapsulation of Aggregate Documents, such as HTML (MHTML) RFC 2110 (1997, Obsolete)—MIME E-mail Encapsulation of Aggregate Documents, such as HTML (MHTML)

Text derived from https://en.wikipedia.org/w/index.php?oldid=1370033993 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

15 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.