The lang and xml:lang attributes disagree
Automated check html-xml-lang-mismatch, run with axe-core
- WCAG
- 3.1.1 Language of Page (Level A)
- Severity
- Moderate: a degraded experience
- Typical effort
- Quick win, under 1 hour
- Category
- Page structure
Who this affects
Screen reader users.
Why it matters
Conflicting language declarations can make assistive technology choose the wrong pronunciation.
How to fix it
Make lang and xml:lang on the <html> element declare the same language, or remove xml:lang.
Check your own website
The free scan tests 3 pages against WCAG 2.2 A and AA in about 30 seconds. No sign-up.