The root <html> element must include a valid lang attribute (BCP 47 tag) to identify the page’s primary language.
<!DOCTYPE html>
<html lang="en">
<head>…</head>
<body>…</body>
</html><!DOCTYPE html>
<html>
<head>…</head>
<body>…</body>
</html>When: The <html> element has no lang attribute or it is empty
Warning: <html> element missing lang attribute
Solution: Specify the document language in the lang attribute (e.g., lang="en").
Accessibility: Without lang, screen readers may mispronounce content or apply incorrect reading rules :contentReference[oaicite:7]{index=7}.
SEO: Search engines lack language metadata, potentially lowering international indexing quality :contentReference[oaicite:8]{index=8}.
Prevent ambiguity in text-to-speech rendering by explicitly declaring page language.
H57: Using the lang attribute on the HTML element (Sufficient technique for SC 3.1.1).The lang attribute on <html> defines the document’s default human language per the HTML spec :contentReference[oaicite:6]{index=6}.