
W3Techs, Stack Overflow and WebAIM each track HTML usage in a different way: share of websites, share of survey respondents, and markup quality on the top one million home pages.
These HTML usage statistics keep those measures apart, covering October 2026 web adoption, the 2026 developer survey, doctype and page-size trends, element counts and accessibility failures.
HTML Usage Statistics 2026
How Many Websites Use HTML in 2026?
HTML runs on 97.8% of websites whose markup language W3Techs can identify, based on its 19 October 2026 reading.
XHTML appeared on 2.9% of the same base. W3Techs records every markup language a site uses, so one domain can count toward both.
HTML5 alone reached 96.0% of websites with a known markup language on 12 October 2026.
Source: W3Techs markup language survey, 12–19 October 2026
Which HTML Versions Do Websites Run?
The base changes here. These shares cover only websites that use HTML, and one site can use more than one version.
| HTML subtechnology | Share of websites using HTML |
|---|---|
| HTML5 | 98.2% |
| HTML Transitional | 2.7% |
| AMP | 0.2% |
| HTML Strict | 0.1% |
Source: W3Techs, subtechnologies of HTML, 6 October 2026
HTML Usage Among Developers in Stack Overflow’s 2026 Survey
58.2% of respondents to Stack Overflow’s 2026 language question did extensive development work in HTML/CSS over the past year.
The survey is opt-in. It drew 30,903 responses from 169 countries, and 14,099 people answered the language question.
HTML and CSS share a single answer option, so CSS-specific adoption figures are tracked separately.
With 8,212 respondents, HTML/CSS ranked third. SQL had 8,237 (58.4%) and Python 8,184 (58.0%).
JavaScript led at 62.0%, its 12th straight year at the top of the list.
Stack Overflow’s time series tracks the same question back to 2018.
| Survey year | HTML/CSS | JavaScript | SQL |
|---|---|---|---|
| 2018 | 68.5% | 69.8% | 57.0% |
| 2019 | 63.5% | 67.8% | 54.4% |
| 2020 | 63.1% | 67.7% | 54.7% |
| 2021 | 56.1% | 65.0% | 47.1% |
| 2022 | 55.1% | 65.4% | 49.4% |
| 2023 | 53.0% | 63.6% | 48.7% |
| 2024 | 52.9% | 62.3% | 51.0% |
| 2025 | 61.9% | 66.0% | 58.6% |
| 2026 | 58.2% | 62.0% | 58.4% |
Source: Stack Overflow Developer Survey 2018–2026, language time series (share of each year’s language respondents; multi-select)
Each edition draws a different self-selected group, so year-to-year moves describe respondents, not all developers.
Among respondents with 16+ years of work experience (n = 5,296), 56.4% used HTML/CSS in 2026.
Source: Stack Overflow Developer Survey 2026, technology highlights
How Many Developers Use AI Tools With HTML/CSS?
The 2026 question also asked which languages people had used AI tools or agents to work with. 33.3% chose HTML/CSS, or 4,692 of 14,099 respondents.
Python led this measure at 39.0%, followed by JavaScript at 38.4%.
Below HTML/CSS came TypeScript at 30.4% and SQL at 29.8%.
Source: Stack Overflow Developer Survey 2026, Used for AI view (n = 14,099)
Do Developers Still Want to Work With HTML/CSS?
29.0% of language respondents want to work with HTML/CSS next year. That places it third on the desired list, after Python (33.4%) and SQL (32.0%).
Among people who used HTML/CSS, 47.8% want to keep using it. JavaScript scored 42.0% on the same admired measure.
Source: Stack Overflow Developer Survey 2026, admired and desired languages (n = 14,099)
How Far Has HTML5 Doctype Usage Spread?
WebAIM found a valid HTML5 doctype on 93.2% of the top one million home pages in February 2026.
Earlier WebAIM scans put the share at 79.1% (2021), 86.1% (2022), 89.8% (2023), 91.6% (2024) and 92.4% (2025).
WebAIM counted 468 unique doctypes in the 2026 sample.
Pages with a valid HTML5 doctype averaged 1,497 elements, against 754 on pages with other doctypes. They also averaged more detected errors, at 56.4 versus 51.7.
Source: WebAIM Million 2026, doctype data for February 2021–February 2026
Doctypes in HTTP Archive’s 2024 Crawl
The 2024 Web Almanac is HTTP Archive’s latest edition with a Markup chapter; the 2025 edition has none. Its crawl covered home pages and secondary pages, so its shares are not directly comparable with WebAIM’s.
| Doctype | Desktop pages | Mobile pages |
|---|---|---|
| <!doctype html> | 91.7% | 92.8% |
| XHTML 1.0 Transitional | 3.4% | 2.7% |
| No doctype (quirks mode) | 2.1% | 2.2% |
| XHTML 1.0 Strict | 0.8% | 0.7% |
| HTML 4.01 Transitional (with DTD URL) | 0.6% | 0.4% |
Source: HTTP Archive Web Almanac 2024, Markup chapter (share of pages, 2024 crawl)
Home Page Markup Hit 1,437 Elements in February 2026
The average top home page carried 1,437 HTML elements in February 2026, a 14.3% increase in one year, according to WebAIM.
WebAIM reported 782 elements per page in 2019, 1,173 in 2024 and 1,257 in 2025. The chart plots the four averages stated in its 2025 and 2026 reports.
Popular sites ran heavier. The top 100,000 home pages averaged 1,584 elements, while the least popular 100,000 averaged 1,318.
Source: WebAIM Million 2025 and 2026 reports (February scans)
How Big Is an HTML Document?
HTTP Archive measured a median HTML transfer size of 32 KB on mobile and 33 KB on desktop in its 2024 crawl.
The 10th, 25th, 75th and 90th percentiles reached 6, 13, 71 and 147 KB on mobile. Desktop figures were 6, 14, 73 and 148 KB.
On mobile, 37% of HTML documents used Brotli compression, 52% used gzip and 10.5% were sent uncompressed.
Source: HTTP Archive Web Almanac 2024, Markup chapter (HTML document transfer size and encoding)
Which HTML Elements Appear Most Often?
| Element | Share of all elements on mobile pages |
|---|---|
| <div> | 28.7% |
| <a> | 12.6% |
| <span> | 11.2% |
| <li> | 7.7% |
| <script> | 3.9% |
Source: HTTP Archive Web Almanac 2024, Markup chapter (mobile, 2024 crawl)
<div> held more than double the share of <a>. <path> overtook <meta> in the 2024 top-10 ranking.
SVG markup spread further: <svg> appeared on 51.6% of mobile pages in 2024, up from 45.5% in 2022.
Custom elements reached 7.9% of mobile pages, from 3.6% in 2022. Pages using them shipped a median 1,286 KB of JavaScript, against 522 KB on pages without them.
Legacy markup lingers. <font> and <center> each appeared on 4.5% of mobile pages, and 26% still carried Internet Explorer conditional comments.
Source: HTTP Archive Web Almanac 2024, Markup chapter (2022–2024 data)
Heading Levels on Top Home Pages
WebAIM detected nearly 30 million headings in February 2026, or 29.9 per home page.
The split was 5.1% <h1>, 29% <h2>, 37.5% <h3>, 14.7% <h4>, 6.8% <h5> and 6.9% <h6>.
18.1% of home pages had more than one <h1>, up from 16.3% in 2025. Skipped heading levels appeared on 41.8% of pages.
Source: WebAIM Million 2026 (February 2026)
Accessibility Failures in Home Page HTML, 2024–2026
95.9% of the top one million home pages had automatically detected WCAG 2 failures in February 2026, up from 94.8% in 2025. Detected errors averaged 56.1 per page, against 51 a year earlier.
| Detected failure (% of home pages) | 2024 | 2025 | 2026 |
|---|---|---|---|
| Low contrast text | 81% | 79.1% | 83.9% |
| Missing alternative text for images | 54.5% | 55.5% | 53.1% |
| Missing form input labels | 48.6% | 48.2% | 51% |
| Empty links | 44.6% | 45.4% | 46.3% |
| Empty buttons | 28.2% | 29.6% | 30.6% |
| Missing document language | 17.1% | 15.8% | 13.5% |
Source: WebAIM Million, February 2024–February 2026 (one page can have several failure types)
These six types made up 96% of all detected errors. Missing document language was the only one to decline in both of the last two scans.
Image tags without alternative text made up 16.2% of the 66.6 images on an average home page.
Home pages averaged 6.9 form inputs, and 33.1% of those inputs lacked a proper input label.
ARIA appeared on 82.7% of home pages, excluding landmark roles. Those pages averaged 59.1 detected errors, against 42 on pages without ARIA.
WebAIM notes this does not prove ARIA caused the errors, since those pages were also more complex. It says the broader trend likely reflects heavier use of third-party frameworks and AI-assisted vibe coding.
Source: WebAIM Million 2026 (February 2026)
FAQs
How many websites use HTML?
97.8% of websites with a known markup language used HTML on 19 October 2026, according to W3Techs. HTML5 reached 96.0% of that same base on 12 October 2026.
What percentage of developers use HTML and CSS?
In Stack Overflow’s opt-in 2026 survey, 58.2% of the 14,099 people answering the language question did extensive HTML/CSS work, third behind JavaScript (62.0%) and SQL (58.4%).
Is HTML still worth learning, setting Reddit opinions aside?
Developer survey data shows continued interest. In Stack Overflow’s 2026 survey, 29.0% of respondents wanted to work with HTML/CSS next year, and 47.8% of current users wanted to keep using it.
What is the most used HTML element?
The <div> element. It made up 28.7% of all elements on mobile pages in HTTP Archive’s 2024 crawl, more than double the 12.6% share held by <a>.
Is HTML a programming language?
W3Techs classes HTML as a markup language, which it defines as a computer language used to describe web pages. Stack Overflow’s survey lists it under programming, scripting and markup languages.