← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Only 2.6% of Most Visited Websites Have Fully Valid HTML

🔄 Updated 1d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Only 2.6% of top 5,000 sites have fully valid HTML.
  • Median site has 12 HTML errors; mean is 37.8 errors.
  • Most common errors are structural, often from frameworks.
  • Accessibility failures are near-universal across sites.

Widespread HTML Validation Issues

An analysis of the Tranco top 5,000 websites revealed that valid HTML is an exception, not the norm. Only 2.6% of these highly visited sites had completely clean HTML on their home pages, indicating a significant deviation from web standards across the internet.

The study found a skewed distribution of errors, with the median site exhibiting 12 HTML errors and the mean reaching 37.8 errors. The worst-performing site had 2,209 errors, highlighting a broad spectrum of compliance levels among popular websites.

Root Causes of Errors

The primary reason for the accumulation of errors is attributed to browsers' robust error recovery mechanisms, which allow sites to function despite invalid code, removing the immediate incentive for developers to fix issues. The most common finding, "<X> element is not permitted as content under <X>," suggests structural problems often generated by frameworks composing components, rather than manual coding mistakes.

CSS errors were also prevalent, with 65.1% of sites having at least one. However, the median CSS error count was low, typically involving invalid property values that browsers silently drop, allowing stylesheets to render without obvious breakage.

Accessibility Concerns

The analysis also highlighted near-universal accessibility failures. Issues such as incorrect heading levels, unlabelled inputs, and links without text appeared on more than a third of the audited sites. With the European Accessibility Act becoming applicable in June 2025, these findings point to a significant compliance challenge for many websites.

Methodology

The data was collected in August 2026 by requesting the home page of each domain from the Tranco top 5,000 list over HTTPS. HTML validation was performed using html-validate with its standard preset, and CSS validation utilized csstree-validator with lightningcss for modern syntax adjudication.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 15

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

A recent analysis of the top 5,000 websites found that only 2.6% have fully valid HTML on their home pages, with the median site having 12 errors. This widespread non-compliance is attributed to browsers' error recovery capabilities and framework-generated structural issues, rather than simple typos.