HTML

Hand-drawn thick hatched terracotta band entering from the left and dividing at right angles into thinner branches, over dense cream, sand, umber and moss cross-hatching.

HTML, or HyperText Markup Language, describes the structure and meaning of content in web pages and applications. The standard defines how browsers build a document tree from markup and what controls such as form fields do. (WHATWG, 2026f; WHATWG, 2026i; WHATWG, 2026c) Evidence that markup choices change what users and search engines do is thin. One site gained 4.5% more search visits after a heading change, while a similar test elsewhere was inconclusive. In a small study, built-in form controls ranked both best and worst for assistive-technology users. (Haugen, 2025; Shepard, n.d.; Higley, 2019)

From HTML 4 to the Living Standard

The World Wide Web Consortium (W3C) published HTML 4.01 in 1999 and XHTML 1.0 in 2000. XHTML restated HTML 4 in XML, a markup format with rules for correct nesting and explicit closing syntax. When a server labels a document as XML, for example with the media type application/xhtml+xml, browsers use an XML parser. Violations of XML syntax such as incorrect nesting are fatal and stop normal processing. (Raggett et al., 1999; Pemberton, 2002; WHATWG, 2026f; Bray et al., 2008)

Predictable handling of existing pages became a goal of HTML5. In 2004, Mozilla and Opera argued that the standard should specify exactly how browsers recover from errors, so each browser would not have to infer the others’ behavior. The W3C’s 2014 comparison described HTML5’s detailed parsing rules as largely compatible with browsers from the HTML 4 era. (Mozilla Foundation & Opera Software, 2004; Pieters & van Kesteren, 2014; WHATWG, 2026f)

The W3C published HTML5 as a Recommendation in 2014, while the Web Hypertext Application Technology Working Group (WHATWG) pursued a continuously maintained standard. A 2019 agreement made the WHATWG Living Standard the principal place to develop HTML and the Document Object Model. The W3C could contribute and endorse review drafts as Recommendations. (Hickson et al., 2014; World Wide Web Consortium & WHATWG, 2019; WHATWG, 2026f)

Markup, the document tree and conformance

The HTML parser builds the Document Object Model (DOM), a tree that represents the document. It first groups the incoming characters into tokens such as start tags and text. A second stage uses those tokens to create nodes and decide where they belong in the tree. (WHATWG, 2026i) See Web rendering architecture for the rest of the rendering process.

The document tree can include boundaries that the markup leaves implicit. Given <p>Hello<div>More</div> in the page body, the parser closes the paragraph (p) before adding the div. Both elements have the same parent. HTML allows the paragraph’s end tag to be omitted before a div, so this is ordinary tree construction. (WHATWG, 2026i; WHATWG, 2026l)

body
├── p
│   └── "Hello"
└── div
    └── "More"

Conformance asks whether a document follows the requirements for authors. A checker tests syntax and other rules, including what an element can contain. The standard specifies how the parser can recover from a parse error and allows it to stop at the error. A page can therefore produce a DOM even when its source fails a conformance check. (WHATWG, 2026i; WHATWG, 2026h)

Elements, attributes and landmarks

Elements describe what parts of a page are for. The nav element marks a major navigation block, article marks a self-contained piece that could be distributed on its own, and main identifies the document’s dominant content. Each element has a content model, which sets rules for what can appear as its children in the document tree. (WHATWG, 2026f; WHATWG, 2026h; WHATWG, 2026g; WHATWG, 2026d)

Attributes add information or behavior to an element and are written in its start tag. In <input type="email">, for example, type tells the browser what kind of data the field takes and which kind of control to provide. (WHATWG, 2026l; WHATWG, 2026j)

A landmark identifies a region by its purpose, such as navigation. The W3C’s draft mapping for web accessibility specifies how browsers expose information about HTML elements to assistive software. It maps nav to the navigation role, for example. (O'Hara & Abdi, 2026)

Forms and built-in controls

A form collects values through controls and can submit them to a server. An input with type="email" presents a text field for email addresses, while type="checkbox" presents a checkbox or switch for selecting a preset choice. Browsers can apply constraints before submission, such as requiring a value when a control has the required attribute. The server still needs to validate the values it receives. (WHATWG, 2026c; WHATWG, 2026j)

HTML also provides several ways to show content on demand. A details element lets a reader expand or collapse content. Its summary labels the content it reveals. The showModal() method opens a dialog above the rest of the page and makes the dialog the focus of interaction. An element with the popover attribute can start hidden and appear above the page when a button targets it. (WHATWG, 2026e; WHATWG, 2026k)

Browsers can ship the same feature at different times. Chrome and Safari shipped basic popover support in 2023, and Firefox followed in April 2024. A browser can also change how it presents a control. For example, Chrome 135 added a styleable select mode whose picker is drawn by the browser without using the mobile operating system’s built-in picker. (Simmons, 2024; Mozilla, 2024; Argyle, 2025)

Markup in web crawls

In HTTP Archive’s June 2024 mobile crawl, div accounted for 28.7% of all counted element occurrences. That share counts each occurrence, so a page with 100 div elements contributes 100 to the tally. A separate measure counts the share of pages on which an element appears at least once. HTTP Archive draws its sites from the Chrome UX Report and loads pages logged out with an empty cache. (Franco, 2024; HTTP Archive, 2024; HTTPArchive, n.d.)

By the page measure, dialog was rare in the early crawls. It appeared on about 0.101% of mobile pages in July 2021 and 0.148% in June 2022. A tabulation of June 2024 results put dialog on 0.3% and details on 3.5% of about 30 million mobile pages. The July 2021 crawl included only home pages, which limits direct comparisons with the later figures. (Kardell, 2022; HTTP Archive, 2022; HTTP Archive, 2021; imkevdev, 2024; HTTPArchive, n.d.)

Two 2026 audits found validation errors on most of the popular home pages they were able to check. In August, ValidateHTML detected at least one error on 2,315 of the 2,656 home pages it could measure from the Tranco top 5,000, a ranking of popular sites (87.2%). In September, Jens Oliver Meiert obtained results for 200 of 270 home pages he attempted with the W3C-hosted checker. Just two of those 200 passed without errors. Each result describes the pages that its checker could measure. (ValidateHTML, 2026; Meiert, 2026)

How people and software use page structure

Finding content with a screen reader

Screen-reader users can move through a page by heading. Researchers observed heading-level navigation among several ways people found content. In WebAIM’s survey, 71.6% of respondents to the question about lengthy pages picked headings as their first approach. Another 3.7% picked landmarks or regions. The survey used a self-selected sample. (Borodin et al., 2010; WebAIM, 2024)

Extracting text for reader mode

Researchers examining Firefox and Safari in 2019 found that both reader modes used several cues to identify the main text. The Firefox implementation combined element types, class and ID names, and scores from parts of the document tree. The Safari implementation examined that year used cues such as where elements appeared and whether they were hidden. In a later benchmark, performance varied by page type. It tested adaptations of browser algorithms alongside other methods. (Li et al., 2019b; Ghasemisharif et al., 2019; Bevendorff et al., 2023)

Search result titles and traffic Weak evidence: few or small studies support this

Evidence about organic traffic comes from tests on individual sites. (Haugen, 2025; Shepard, n.d.) Google documents how it generates the clickable titles in search results, listing the page’s title element and headings such as h1 among its inputs. Its guidance also says that using heading levels out of order is immaterial to Google Search and that there is no ideal heading count. (Google Search Central, 2025a; Google Search Central, 2025b)

SearchPilot reported 4.5% more visits from unpaid search results for one travel site’s listing pages after changing the first h2 to an h1 with the same styling. A similar split test on Moz’s blog was inconclusive after eight weeks. (Haugen, 2025; Shepard, n.d.)

Choosing one or several options in a form Weak evidence: few or small studies support this

A small comparison found different results for built-in single-choice and multiple-choice controls. In a study with 12 assistive-technology users, the built-in single-choice select had full task completion and the highest usability score among the scored read-only single-choice controls. The built-in multiple-choice select had the lowest completion rate and usability score of the tested components. (Higley, 2019)

Multiple selections can take longer in a list box than with checkboxes. In one experiment, that time difference disappeared after six trials. A separate comparison using checkboxes in a dropdown also found that checkboxes were faster than a list box and that participants preferred them. (Bargas-Avila et al., 2011; Leithe & Sandnes, 2021)

Further reading

  • HTML Living Standard, parsing. The rules for turning characters into a document tree and handling parse errors. (WHATWG, 2026i)
  • 2024 Web Almanac, Markup. Element frequencies and the range of element types used on measured pages. (Franco, 2024)
  • Screen Reader User Survey #10. Respondents report what they would try first on a lengthy page. (WebAIM, 2024)

Known gaps

What this article cannot tell you yet.

  1. The home-page audits cover selected popular sites. They do not establish how common validation errors are across the web or how often those errors interfere with a task.
  2. The crawl figures use different page samples across years, which limits comparisons of feature adoption.
  3. The extraction benchmarks compare algorithms on existing pages. The effect of adding a particular semantic element to the same page remains open.
  4. The search experiments cover individual site templates. The form-control comparisons cover a limited set of controls, tasks and users.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 42 references