The HTML Checker validates your markup against W3C standards and reports every error and warning a browser, screen reader or crawler might trip on โ invalid tags, missing doctype, encoding mismatches, deprecated elements, unclosed elements, missing accessibility attributes and broken ARIA roles. This index covers exactly how to fix each category, with code examples for common templates.
Validation errors fall into these categories. Click through for the fix walk-through:
<!DOCTYPE html> as the very first line. No whitespace before it, no BOM, no comments. Browsers fall back to quirks mode without it, which breaks CSS layouts unpredictably.<meta charset> declarations, missing UTF-8 BOM in templates, server Content-Type header conflicting with the meta tag. How to standardise on UTF-8 everywhere and audit existing files for hidden encoding drift.</div>, <li> outside <ul>, <p> wrapping a <div>. The patterns that look fine in a browser but blow up screen-reader navigation and crawler parsing.<font>, <center>, <marquee>, presentational attributes like bgcolor, align, border with CSS. Legacy code modernisation strategy for inherited sites.getElementById, ARIA aria-labelledby references and screen-reader navigation. How to audit and resolve at scale.role values, aria-labelledby pointing at non-existent IDs, redundant ARIA on native semantic elements. The "no ARIA is better than bad ARIA" rule and when to apply it.<html> needs a valid lang attribute (en, en-GB, fr etc.). Without it, screen readers may pronounce content wrong and Google may misinterpret language targeting.<label> association, missing name attributes, <button> without explicit type, autocomplete attribute mistakes that hurt accessibility and conversion.How the fixes are applied depends on where your HTML is generated:
className vs class gotcha, fragment patterns, and SSR vs CSR rendering inconsistencies.The HTML Checker runs your markup through a W3C-equivalent validator and reports every error, warning and accessibility concern. It checks doctype, encoding, tag nesting, deprecated elements, ARIA attributes, form semantics and language targeting. For the complete reference, see the HTML Checker Guide or view a sample validation report.
Before you fix anything, run the checker against your live URL and get the complete error list. Most sites have 3-4 systemic issues that repeat across pages โ fixing those in the template clears the bulk.
Run HTML Checker โ