MHTML

From Wikipedia, the free encyclopedia

MHTML stands for MIME HTML (Multipurpose Internet Mail Extension 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, based on RFC 2557. The included data files are encoded using MIME. This format is sometimes referred to as MHT, after the suffix .mht given to such files by default when created by Microsoft Word, Internet Explorer or Opera.

The key to MHTML is that the content is encoded as if it were an HTML 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.

Contents

[edit] 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.

[edit] Internet Explorer

The .mht format was introduced in 1999 with Internet Explorer 5[1], which allows users to save a web page and its resources as a single MHTML file; a "Web Archive". This feature, however, may be unable to save certain complex web pages correctly, especially those containing scripts.

[edit] Opera

Support for saving a web page including its resources as an MHTML file was made available in the Opera 9.0 web browser since the weekly build 8265 (released on March 10, 2006).

[edit] Firefox

The web browser Mozilla Firefox, as of version 2, does not include direct support for saving or opening web pages as MHTML files (which is filed as bug 18764). This functionality can be obtained on Windows operating systems by installing the freely available third-party Mozilla Archive Format extension, though the .mht files it generates are not fully compatible with Microsoft's products.[2]

As of August 2006, the available version of the MAF extension (V.0.6.3) cannot be installed into versions of Firefox greater than 1.5. A repackaged version is available on The Extensions Mirror.

MAF extension V.0.6.3 for FF 2.0 is available at http://www.mediafire.com/?fgn3zx4ktzd.

[edit] Safari

As of version 2.0 (released April 29, 2005), Apple Computer's Safari web browser supports saving web pages as web archives. The browser is unable to open MHTML files, though, so true MHTML support in Safari remains weak.

[edit] Editing support

Microsoft's own HTML editor, FrontPage and their word processor, Microsoft Word cannot read MHTML files created by Internet Explorer correctly with formatting.[citation needed] A converter found on the Microsoft web site provides compatibility for Word 2000. Moreover, Microsoft Office programs save the linked content (such as images) using relative links, whereas Internet Explorer saves the MHTML file using absolute links.

As of 2006, Microsoft SharePoint Designer 2007 appears to correctly read and edit MHTML files with formatting intact.

[edit] See also

[edit] References

  1. ^ New Features in Internet Explorer 5
  2. ^ Feature Request: Support MS Web Archive Files

[edit] External links