2023: 0 of the Global Top 100 Websites Use Valid HTML
Published on October 31, 2023 (❠September 14, 2024), filed under Development (RSS feed for all categories).
For the latest analysis, check out the data for 2024.
Letâs dive right in: Nothing changed compared to last yearânone of the 100 most-visited websites globally uses HTML in full conformance with the HTML specification.
The following data gives an impression of precision that is greater than warranted. The point of this annual analysis is to check on full HTML conformance (absence of markup errors); that is, CSS conformance checks are a bonus, and the specific error counts donât matter for the purpose of telling conformance or non-conformance, either. Iâm providing the data for further study, and for comparability to previous years.
Analysis
After 2021 and 2022, I used the annual update of the Ahrefs Top 100 websites to check the homepages of these websites on HTML conformance.
For that purpose I took all the respective URLs, prepared HTML and CSS validation URLs, and documented the error counts of the 200 tests in a spreadsheet:
HTML Conformance in 2023
0 of the 100 websites have 0 HTML conformance errors.
3 (Adobe, Speedtest, and Spotify) were very close to conformance, with 1 error each. 14 more had a single-digit number of issues.
37 were far away from conformance with any specification (100 or more errors).
The average number of HTML errors is 132.14.
The HTML errors median is 62.
(The mode is 23.)
CSS Conformance in 2023
The W3C CSS validator needs updating. There appear to be many false positives (and a suspicion of false negatives), raising concern that the results arenât practically useful anymore (perhaps not even for ballpark numbers). CSS conformance isnât as critical as HTML conformance, but itâs important for us to have a reliable CSS validator.
12 of 94 tested websites have 0 CSS conformance errors. (6 websites could not be checked.)
34 were close to conformance, with a single-digit number of errors.
7 were far away (100 or more errors, with one site containing more than 1,000 errors).
The average number of CSS errors is 46.79.
The median is 10.5.
(The mode is 0.)
HTML and CSS Conformance over Time
We need to test more websites to make this significant, but given that this has been the third analysis, here is how error counts developed over the years:
2021 | 2022 | 2023 | |
---|---|---|---|
HTML | ø 125.22 errors | ø 125.63 errors â | ø 132.14 errors â |
2 homepages without errors | 0 homepages without errors â | 0 homepages without errors â | |
CSS | ø 48.40 errors | ø 26.33 errors â | ø 46.79 errors â |
3 homepages without errors | 13 homepages without errors â | 12 homepages without errors â |
Interpretation
I think the results speak for themselves.
Personally, Iâm vocal about the usefulness of conformanceâI think itâs foundational for our field, that it should be a hiring criterion, and that it could unite us to tackle other important challenges. (If youâre interested, I also run an ebook seriesâcheck out the latest editionâexplaining and promoting valid, minimal HTML.)
While thatâs me, even during the years of the Web Standards Project (1998â2013), our field has neither accepted this nor any other quality standard for its output.
We can use every developer to improve thisâlead by example and ship valid codeâ, but going by the data, thereâs no change in sight.
About Me
Iâm Jens (long: Jens Oliver Meiert), and Iâm a frontend engineering leader and tech author/publisher. Iâve worked as a technical lead for companies like Google and as an engineering manager for companies like Miro, Iâm a contributor to several web standards, and I write and review books for OâReilly and Frontend Dogma.
I love trying things, not only in web development (and engineering management), but also in other areas like philosophy. Here on meiert.com I share some of my experiences and views. (Please be critical, interpret charitably, and give feedback.)
Read More
Maybe of interest to you, too:
- Next: Website Optimization Measures, Part XXI
- Previous: Existence and Experience
- More under Development
- More from 2023
- Most popular posts
Looking for a way to comment? Comments have been disabled, unfortunately.
Get a good look at web development? Try WebGlossary.infoâand The Web Development Glossary 3K. With explanations and definitions for thousands of terms of web development, web design, and related fields, building on Wikipedia as well as MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, and Leanpub.