Skip to content
HTML

Document format

HTML

HTML is the structural language of web documents. Elements identify headings, paragraphs, lists, links, tables and other content so browsers and assistive technology can interpret a page.

Learn more

Convert from HTML

Available conversions · 13

All partners (13)

Convert to HTML

Available conversions · 25

All partners (25)

Conversion is available locally in your browser. VALIDATED records tested, bounded profiles; EXPERIMENTAL records provisional acceptance. Neither status promises complete preservation or support for every file.

What is the format?

HTML is the structural language of web documents. Elements identify headings, paragraphs, lists, links, tables and other content so browsers and assistive technology can interpret a page. HTML is distinct from CSS, which describes presentation, and JavaScript, which provides behavior. A saved HTML file is not necessarily a complete copy of the website it came from.

Technical profile

Extensions
.html / .htm
Storage
Text file
Document model
Document tree and linked resources
MIME
text/html
Universal Text Conversion Engine (UTCE)
Source and target
Scope
Format properties ≠ converter coverage

The cards describe the file format. Conversion boundaries are explained below.

History and evolution

Tim Berners-Lee’s 1989 proposal at CERN set out the hypertext system that became the World Wide Web. Early HTML provided a small vocabulary for linking scientific documents. HTML 2.0 was documented in RFC 1866 in 1995; HTML 4.01 became a W3C Recommendation in 1999. The HTML5 work expanded the platform. Today the WHATWG Living Standard describes the continually maintained HTML language and browser processing model.

  1. 1989

    CERN / World Wide Web

    Tim Berners-Lee proposes the hypertext system that becomes the Web.

  2. 1995

    HTML 2.0 / RFC 1866

    The RFC documents HTML 2.0.

  3. 1999

    HTML 4.01

    W3C publishes HTML 4.01 as a Recommendation.

Related formats

Compare document models and their uses.

Technical architecture

HTML text is parsed into a document tree. Its parser has defined error recovery, so malformed markup can still produce a displayed page. Attributes carry links, language, identifiers and other information. A charset declaration helps decode bytes; UTF-8 is the normal modern choice. Images, stylesheets and fonts may be external resources. Tables can encode relationships with header cells, but visual spacing made with arbitrary elements is not automatically a real table.

Semantics versus a rendered screenshot

A browser combines HTML with CSS, fonts, images, viewport dimensions and possibly script-generated content. The screenshot is the result of that environment, not a direct serialization of the source tree. A semantic converter instead reads admitted headings, paragraphs, tables and links. This can make content easier to reuse, but visual elements produced only by CSS or scripts may disappear. Exporting structured prose and reproducing a website’s pixels are different transformations.

Offline resources and trustworthy processing

Relative image and stylesheet paths are resolved against a base address. Moving a file can break those paths even if its text has not changed. For offline delivery, inventory the dependencies and store local copies where appropriate. For untrusted source, ordinary browser rendering can contact remote servers or execute active content. A data-only conversion workflow needs explicit resource and link policies, and must not silently load a remote image just to improve visual resemblance.

Real-world applications

Websites, documentation, newsletters and browser-based reports use HTML. Semantic authoring makes content reusable: a heading remains a heading whether displayed on a phone or exported into a book. Offline distribution requires attention to referenced resources. A downloaded article that points to remote images and CSS may stop looking complete when those addresses change.

Advantages and limitations

HTML combines readable source with rich structure and a broad software ecosystem. It does not by itself lock page geometry or package all dependencies. Active content can run when a document is opened in a browser, and links may trigger network requests. Sanitized extraction and full browser rendering answer different questions: one recovers admitted content, the other executes a page’s presentation environment.

Compatibility and software

Modern browsers implement HTML, while word processors and ebook tools usually import subsets. Browser recovery does not make a document well-formed XML. For archival capture, preserve dependencies and capture context; a single .html file is often insufficient. For interchangeable prose, prefer headings and tables with explicit meaning over a layout built entirely from generic containers.

Conversion considerations

UTCE uses a data-only parser and a semantic allowlist. Source markup is not attached to a live page, scripts are not executed and remote resources are not fetched. Admitted paragraphs, lists, tables, local raster images, links and notes enter the shared model. CSS and unsupported elements produce reported losses. The output describes content, not a screenshot of the original web page.

Frequently asked questions

Why are pictures missing from a saved HTML file?

The file may only reference separate image URLs. Preserve those resources or embed them appropriately; renaming the HTML file does not include them.

Will HTML to PDF preserve the exact website design?

UTCE exports admitted semantic content into new typeset pages. It does not reproduce arbitrary CSS, JavaScript or the browser viewport.

Sources and specifications