Repair workflow
- Start with the HTML5 doctype.
- Declare UTF-8 early in the head.
- Set a valid BCP 47 language on html.
- Verify the server sends compatible content-type information.
Issue library · 4 technical html checks
Give browsers, crawlers, and assistive technology a predictable document language, encoding, and HTML foundation.
Declare HTML5, UTF-8, and a valid page language in the rendered document. These basics reduce ambiguity for rendering, text processing, accessibility, and international interpretation.
Missing or invalid document declarations can cause inconsistent rendering and make language-dependent processing less reliable.
The html element has no lang value.
Set the main content language using a valid BCP 47 tag.
Inspect the html element and confirm assistive technology announces the correct language.
The lang value does not match the expected language-tag format.
Replace it with a valid language or language-region value.
Validate the code and test pronunciation with assistive technology.
No character encoding was captured.
Declare UTF-8 early in the head and align the HTTP header.
Inspect rendered text for corruption and verify Content-Type.
The document has no captured HTML doctype and may enter quirks mode.
Place <!doctype html> before the root html element.
Check document.compatMode and confirm standards mode.