MHTML
From Wikipedia, the free encyclopedia
MHTML stands for MIME HTML. It is used to bind resources which are typically represented by external links, such as image and sound files, along with HTML code into a single file. 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.
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. MHTML is a proposed standard, circulated in a revised edition in 1999 as RFC 2557.
Contents |
[edit] Web browser support
Outside of Internet Explorer, support for this format is variable. The process for saving a web page along with its resources as an MHTML file is not standardized across those browsers that do provide support. Due to this, the same web page saved as an MHTML file using different browsers may render differently on each browser.
[edit] Internet Explorer
The .mht format was introduced in 1999 with Internet Explorer 5[1]. Saving in this format allows users to save a web page and its resources as a single MHTML file called a "Web Archive", where all images and linked files will be saved as a single entity. It may, however, be unable to correctly save certain complex web pages, 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). Script problems arise here also.
[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. Though there is already source code available for viewing MHTML files within the Thunderbird project, this is filed as unsolved bug 18764 within the Firefox project since 1999.
There is a MHTML extension: UnMHT. This works in Firefox 2.0. It is available under the MPL 1.1/GPL 2.0/LGPL 2.1 licence.
- From UnMHT version 2.8.0 English and German locales are included.
- As of version 3.0.0 extracting data to a MHTML file is supported.
For Firefox 1.5, this functionality can be obtained on Windows and Linux operating systems by installing a freely available third-party XPI file from Mozilla Archive Format extension, though the .mht files it generates are not fully compatible with Microsoft's products.[2]
[edit] Safari
As of version 2.0 (released April 29, 2005), Apple Inc.'s Safari web browser does not support the MHTML format. Instead, it saves web pages in the webarchive format, which were previously directory bundles pre-3.0 but now are single files outputs.
There is a UnMHT port for Safari available. [3]. It is based on SIMBL and GreaseKit. [4][5]
[edit] Konqueror
As of version 3.5.7 (released 2007-05-02), KDE's Konqueror web browser does not support MHTML files. However, it does include a feature for saving web pages as single files ("web archives", file extension .war) which are actually gzipped tarballs.
[edit] ACCESS NetFront
NetFront 3.4 (on devices such as the Sony Ericsson K850) can view MHTML files, and also save open pages as mhtml (created with filename suffix .mhtml).
[edit] Editing support
All versions of Microsoft Word, since Word 2002, are able to open and save MHTML documents.[6][7] A converter is available from Microsoft to enable Word 2000 to open,[8] and an add-on to allow it to save,[9] MHTML files.
MHTML is also supported by Microsoft Word Viewer 2003, Microsoft Office Access 2003, Excel 2003, OneNote 2003, and PowerPoint 2003.[10][11] Surprisingly, current versions of Microsoft's mainstream HTML editor products, such as Microsoft FrontPage, Microsoft SharePoint Designer and Microsoft Expression Web are unable to understand and parse MHTML format. They can only be forced to open MHTML files and display their contents as simple text.[12][13][14]
On the Linux platform a utility called kmhtConvert is available to convert MHTML files to the KDE Web Archive format.[15]
[edit] See also
- An alternative for attaching resources to an HTML document is the Data: URI scheme defined in IETF standard RFC 2397.
[edit] References
- ^ New Features in Internet Explorer 5
- ^ Feature Request: Support MS Web Archive Files
- ^ http://www.unmht.org/os_unmht/en_index.html
- ^ http://culater.net/software/SIMBL/SIMBL.php
- ^ http://code.google.com/p/greasekit/
- ^ File formats Word can open and save without converters
- ^ Saving a Microsoft Office Word 2003 document in a file format that cannot support specific features
- ^ Microsoft Word Web Archive Converter for Word 2000
- ^ Office 2000 Web Archive Add-on Available
- ^ Microsoft Office Word Viewer 2003 Download Page, Overview section.
- ^ About single file Web pages
- ^ Microsoft Office FrontPage 2003, Microsoft Corporation
- ^ Microsoft Office Sharepoint Designer, Microsoft Corporation. A fully-functional trial version is available from Microsoft web site.
- ^ Microsoft Expression Web, Microsoft Corporation. A fully-functional trial version is available from Microsoft web site.
- ^ Linux utility to convert mhtml files to KDE Web Archive files
[edit] External links
- MHTML standard explained
- MHT-rip - A program to view MHTML files on Linux
- 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)
|
||||||||||||||||||||

