Why it matters
Screen readers need the correct language to pronounce content accurately.
Common violations
- Missing lang attribute on html
- Incorrect language code
- Language not updated for localized pages
Code examples
Bad
<html>Good
<html lang="en">How to fix
Set the correct lang attribute on the html element for every page.
Related criteria
Related resources
Test & fix this criterion
Use these free tools and guides to check and fix 3.1.1 Language of Page violations:
Scan your site