MHTML
From Free net encyclopedia
MHTML stands for MIME HTML. It is a standard for including resources that in usual HTTP pages are linked externally, such as images and sound files, in the same file as the HTML code. The included data files are encoded using MIME. A common but erroneous name for this format is MHT, after the suffix .mht given to such files by default when created by Internet Explorer.
The key to MHTML is that the content is encoded as if it were an email message, using the MIME type multipart/related
. The first part is the HTML file, encoded normally. Subsequent parts are additional resources, identified by their original URLs.
Web browser support
The process for saving a web page along with its resources as an MHTML file is not entirely standardized across browsers that support it. Due to this, the same web page saved as an MHTML file using different browsers may render somewhat differently on each browser.
While the web browser Firefox as of version 1.5.0.2 does not include direct support for saving a web page as an MHTML file, this functionality can be obtained on Windows operating systems by installing the freely available Mozilla Archive Format [1] extension.
Internet Explorer
The Internet Explorer web browser allows users to save a web page including its resources as a Web Archive, i.e. a single MHTML file. This feature, however, may be unable to save certain complex web pages especially those containing scripts.
Support for saving a web page including its resources as an MHTML file was made available in the Opera web browser since the weekly build 8265 (released on March 10, 2006).
Alternatives
An alternative method for attaching resources to an HTML page is the use of data: URIs.
External links
- MHTML standard explained
- Firefox extension that supports MHTML archiving and viewing
- 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)
Template:Comp-stubde:MIME Encapsulation of Aggregate HTML Documents fr:MHTML