The <html> element must have a lang attribute
readable/html-has-lang · WCAG 3.1.1 · Level A
The <html> element must have a lang attribute.
Screen readers use the lang attribute to determine which language rules and pronunciation to use. Without it, content may be mispronounced. Set lang to the primary language of the page using a BCP 47 code (e.g., 'en' for English, 'es' for Spanish, 'fr' for French, 'de' for German, 'ja' for Japanese, 'zh' for Chinese, 'pt' for Portuguese, 'ar' for Arabic).
Scan a page or repo for issues like this · All rules
Introduced in @accesslint/core v0.8.0