The lang attribute on <html> must have a valid value

readable/html-lang-valid · WCAG 3.1.1 · Level A

The lang attribute on <html> must have a valid value.

The lang attribute must use a valid BCP 47 language tag. Use a 2 or 3 letter language code (e.g., 'en', 'fr', 'zh'), optionally followed by a region code (e.g., 'en-US', 'pt-BR'). Invalid tags prevent screen readers from correctly pronouncing content.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0