All WCAG criteria
WCAG 3.1.1 · UnderstandableLevel A
3.1.1Language of Page
The default human language of the page must be programmatically determinable via the `lang` attribute on `<html>`.
Common failures
Patterns that fail this criterion.
- 01`<html>` with no `lang` attribute
- 02`<html lang="">` (empty)
- 03Wrong lang (e.g. `lang="en"` on a French page)
How to test
Testing approach: automated.
axe-core checks for the presence and validity of html lang.
axe-core rules
html-has-langhtml-lang-validHow to fix
Remediation steps.
- 1
Set <html lang>
`<html lang="en">` for English, `lang="fr"` for French, etc. Use BCP 47 language tags.
Scan for WCAG 3.1.1 on your site
Find every violation in 42 seconds.
AccessProof runs axe-core 4.9.1 against your site and flags every WCAG criterion with the offending element selector. WCAG 3.1.1 is one of 49 criteria we check on every scan.
All 50 WCAG 2.1 Level A + AA success criteria explained.
View the full checklist