conv.

All stories
TechQuiet 94d · day 96

Study finds only 2.6% of top websites have fully valid HTML

A validator audit of the Tranco top 5,000 domains finds nearly all violate the HTML spec, sparking debate over whether that still matters.

What to know

  • The audit found 90.5% of the top 5,000 most-visited domains have at least one HTML spec violation, with only 2.6% (69 sites) fully clean of errors and warnings.
  • The most common issue, present on 59.5% of sites, is a structural nesting violation attributed to framework-generated markup rather than manual coding mistakes.
  • Critics on Hacker News dispute the framing, arguing the 2.6% 'clean' figure conflates best-practice warnings with actual spec violations and that HTML5's error-tolerant parsing has made strict validity largely moot.
  • Accessibility-related failures (heading structure, unlabelled inputs, links without text) appear on over a third of sites, which commenters and the report link to compliance exposure under the EU's Accessibility Act.

The dispute Whether invalid HTML represents a real quality/compliance problem or is a harmless artifact of an error-tolerant, framework-driven web that no longer matters in practice. · positions read across 13 posts and comments

most voices

HTML validity stopped being practically important once HTML5 standardized how browsers parse invalid markup.

  • “This is no longer anywhere near as important as it used to be because HTML5 defines a method for turning more-or-less any sequence of bytes into the same DOM tree”

    jerf · Hacker News
many voices

The study's headline and methodology are misleading or flawed.

  • “The 2.6% figure only includes websites that also follow some arbitrary set of "best practices" in addition to being valid HTML, some of which actually contradict best practices from the past.”

    account42 · Hacker News
some voices

Full HTML validity is now a niche point of pride rather than a practical necessity.

  • “As someone who valued that "Validated by w3c" button on my website back in the day, if a website today has FULLY valid HTML, I gaurantee you the admin is a massive nerd.”

    INTPenis · Hacker News

“Valid HTML is the exception, not the rule. Nine sites in ten among the most visited on the web violate the standard on their home page, and 2.6% come back completely clean.”

validatehtml.com, Report author · validatehtml.com · Aug 10

validatehtml.com Publisher of the HTML validity researchtheo_dcrx Hacker News submitter

The record 2 articles and posts · last 30 days

  1. Only 2.6% of the most visited websites have fully valid HTML press · HN Frontpage · theo_dcrx · 95d ago
  2. 90.5% of the topk websites fail HTML validation post · Hacker News · theo_dcrx · 95d ago · 45▲ · 64 comments

What people are saying 12 voices from 1 site · best of 13 · verbatim

Still unanswered
  • Does the 2.6% 'fully clean' figure reflect true spec compliance or an inflated bar that mixes in subjective best practices?
  • How much of the accessibility-related failure rate translates into actual legal exposure under regulations like the EU Accessibility Act?