HTML
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.)
Validation on popular home pages
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)
First published .
Known gaps
What this article cannot tell you yet.
- 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.
- The crawl figures use different page samples across years, which limits comparisons of feature adoption.
- The extraction benchmarks compare algorithms on existing pages. The effect of adding a particular semantic element to the same page remains open.
- 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
- Argyle, A. (2025). The Select element can now be customized with CSS. Chrome for Developers. https://developer.chrome.com/blog/a-customizable-select?hl=en Solid source Vendor page, read in large part.
- Bargas-Avila, J. A., Brenzikofer, O., Tuch, A. N., Roth, S. P., & Opwis, K. (2011). Working towards Usable Forms on the Worldwide Web: Optimizing Multiple Selection Interface Elements. Advances in Human-Computer Interaction, 2011, 347171. https://onlinelibrary.wiley.com/doi/10.1155/2011/347171 Solid source Peer-reviewed, read in large part.
- Bevendorff, J., Gupta, S., Kiesel, J., & Stein, B. (2023). An Empirical Comparison of Web Content Extraction Algorithms. Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval. https://downloads.webis.de/publications/papers/bevendorff_2023c.pdf Solid source Peer-reviewed, read in large part.
- Borodin, Y., Bigham, J. P., Dausch, G., & Ramakrishnan, I.V. (2010). More than Meets the Eye: A Survey of Screen-Reader Browsing Strategies. W4A2010, ACM. https://www.cs.cmu.edu/~jbigham/pubs/pdfs/2010/screen-reader-strategies.pdf Medium trust Read in large part.
- Bray, T., Paoli, J., Sperberg-McQueen, C. M., Maler, E., & Yergeau, F. (2008). Extensible Markup Language (XML) 1.0 (Fifth Edition). World Wide Web Consortium. https://www.w3.org/TR/xml/ Solid source Documentation, read in large part.
- Franco, E. (2024). Markup. 2024 Web Almanac by HTTP Archive. https://almanac.httparchive.org/en/2024/markup Medium trust Read in large part.
- Ghasemisharif, M., Snyder, P., Aucinas, A., & Livshits, B. (2019). SpeedReader: Reader Mode Made Fast and Private. Proceedings of the 2019 World Wide Web Conference (WWW ’19), ACM. https://brave.com/research/files/speedreader-www19.pdf Medium trust Peer-reviewed, read in large part.
- Google Search Central (2025a). Influencing your title links in search results. Google for Developers. https://developers.google.com/search/docs/appearance/title-link Solid source Documentation, read in large part.
- Google Search Central (2025b). Search Engine Optimization (SEO) Starter Guide. Google for Developers. https://developers.google.com/search/docs/fundamentals/seo-starter-guide Medium trust Documentation, read in large part.
- Haugen, D. (2025). Does Changing an H2 to an H1 Improve Organic Traffic? SearchPilot. https://www.searchpilot.com/resources/case-studies/does-changing-an-h2-to-an-h1-improve-organic-traffic Weak source Vendor page, read in large part.
- Hickson, I., Berjon, R., Faulkner, S., Leithead, T., Navara, E. D., O'Connor, T., et al. (2014). HTML5. W3C. https://www.w3.org/TR/2014/REC-html5-20141028/ Solid source Documentation, read in large part.
- Higley, S. (2019). Select Your Poison Part 2: Test All the Things. 24 Accessibility. https://www.24a11y.com/2019/select-your-poison-part-2/ Medium trust Blog post, read in large part.
- HTTP Archive (2021). Methodology. 2021 Web Almanac by HTTP Archive. https://almanac.httparchive.org/en/2021/methodology Solid source Documentation, read in large part.
- HTTP Archive (2022). Methodology. Web Almanac by HTTP Archive. https://almanac.httparchive.org/en/2022/methodology Solid source Documentation, read in large part.
- HTTP Archive (2024). Methodology. 2024 Web Almanac by HTTP Archive. https://almanac.httparchive.org/en/2024/methodology Solid source Read in large part.
- HTTPArchive (n.d.). element_frequency.sql. GitHub. https://github.com/HTTPArchive/almanac.httparchive.org/blob/main/sql/2024/markup/element_frequency.sql Solid source Read in large part.
- imkevdev (2024). Can I access to raw results of Web Almanac markup query from google BigQuery? HTTP Archive discussion forum. https://discuss.httparchive.org/t/can-i-access-to-raw-results-of-web-almanac-markup-query-from-google-bigquery/2841 Medium trust Blog post, read in large part.
- Kardell, B. (2022). Interoperability. The 2022 Web Almanac, HTTP Archive. https://almanac.httparchive.org/en/2022/interoperability Medium trust Read in large part.
- Leithe, W., & Sandnes, F. E. (2021). A Comparison of Multiple Selections using Multiple Checkbox Selections and List Boxes. HCII 2021: HCI International 2021 – Late Breaking Posters, Proceedings, Part II. https://oda.oslomet.no/oda-xmlui/bitstream/handle/11250/2831847/Multiple%20selection%20210619.pdf?isAllowed=y&sequence=5 Medium trust Peer-reviewed, read in large part.
- Li, Q., Morris, M. R., Fourney, A., Larson, K., & Reinecke, K. (2019b). The Impact of Web Browser Reader Views on Reading Speed and User Experience. CHI Conference on Human Factors in Computing Systems Proceedings (CHI 2019), ACM. https://www.microsoft.com/en-us/research/wp-content/uploads/2019/01/readerview_chi2019.pdf Solid source Peer-reviewed, read in large part.
- Meiert, J. O. (2026). 2026: 2 of the Global Top 200 Websites Use Valid HTML. Jens Oliver Meiert. https://meiert.com/blog/html-conformance-2026/ Solid source Blog post, read in large part.
- Mozilla Foundation, & Opera Software (2004). Position Paper for the W3C Workshop on Web Applications and Compound Documents. W3C. https://www.w3.org/2004/04/webapps-cdf-ws/papers/opera.html Medium trust Read in large part.
- Mozilla (2024). Firefox 125 release notes for developers. MDN Web Docs. https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/125 Solid source Documentation, read in large part.
- O'Hara, S., & Abdi, R. (2026). HTML Accessibility API Mappings 1.0. W3C. https://www.w3.org/TR/html-aam-1.0/ Solid source Documentation, read in large part.
- Pemberton, S. (2002). XHTML 1.0 The Extensible HyperText Markup Language (Second Edition). W3C. https://www.w3.org/TR/xhtml1/ Solid source Documentation, read in large part.
- Pieters, S., & van Kesteren, A. (2014). HTML5 Differences from HTML4. W3C. https://www.w3.org/TR/html5-diff/ Solid source Documentation, read in large part.
- Raggett, D., Le Hors, A., & Jacobs, I. (1999). HTML 4.01 Specification. W3C. https://www.w3.org/TR/html401/ Solid source Documentation, read in large part.
- Shepard, C. (n.d.). Are H1 Tags Necessary for Ranking? [SEO Experiment]. Moz. https://dc8hdnsmzapvm.cloudfront.net/blog/h1-seo-experiment Medium trust Vendor page, read in large part.
- Simmons, J. (2024). The web just gets better with Interop 2024. WebKit. https://webkit.org/blog/14955/the-web-just-gets-better-with-interop/ Medium trust Vendor page, read in large part.
- ValidateHTML (2026). HTML & CSS Error Statistics: We Validated the Top 5,000 Websites. ValidateHTML. https://validatehtml.com/html-error-statistics Weak source Vendor page, read in large part.
- World Wide Web Consortium, & WHATWG (2019). Memorandum of understanding between W3C and WHATWG. World Wide Web Consortium. https://www.w3.org/2019/04/WHATWG-W3C-MOU.html Solid source Documentation, read in large part.
- WebAIM (2024). Screen Reader User Survey #10 Results. WebAIM. https://webaim.org/projects/screenreadersurvey10/ Medium trust Read in large part.
- WHATWG (2026i). HTML Living Standard — The HTML syntax. WHATWG. https://html.spec.whatwg.org/multipage/parsing.html Solid source Documentation, read in large part.
- WHATWG (2026f). HTML Living Standard — Introduction. WHATWG. https://html.spec.whatwg.org/multipage/introduction.html Solid source Documentation, read in large part.
- WHATWG (2026h). HTML Living Standard — Semantics, structure, and APIs of HTML documents. WHATWG. https://html.spec.whatwg.org/multipage/dom.html Solid source Documentation, read in large part.
- WHATWG (2026g). HTML Living Standard — Sections. WHATWG. https://html.spec.whatwg.org/multipage/sections.html Solid source Documentation, read in large part.
- WHATWG (2026d). HTML Living Standard — Grouping content. WHATWG. https://html.spec.whatwg.org/multipage/grouping-content.html Solid source Documentation, read in large part.
- WHATWG (2026c). HTML Living Standard — Forms. WHATWG. https://html.spec.whatwg.org/multipage/forms.html Solid source Documentation, read in large part.
- WHATWG (2026e). HTML Living Standard — Interactive elements. WHATWG. https://html.spec.whatwg.org/multipage/interactive-elements.html Solid source Documentation, read in large part.
- WHATWG (2026k). HTML Living Standard — The popover attribute. WHATWG. https://html.spec.whatwg.org/multipage/popover.html Solid source Documentation, read in large part.
- WHATWG (2026l). HTML Living Standard — Writing HTML documents. WHATWG. https://html.spec.whatwg.org/multipage/syntax.html Solid source Documentation, read in large part.
- WHATWG (2026j). HTML Living Standard — The input element. WHATWG. https://html.spec.whatwg.org/multipage/input.html Solid source Documentation, read in large part.