Understandable
3.1.2 Language of Parts
Passages in a different language from the rest of the page must be marked with their language.
Who it helps
Screen reader users, whose reader otherwise mispronounces the passage.
Failures we see most
- A Spanish paragraph on an English page with no lang attribute
How it gets tested
Our scanner runs this axe-core check for 3.1.2:
| Check | What it looks for |
|---|---|
valid-lang | lang attribute must have a valid value |
Automated checks can find failures of 3.1.2, but they cannot confirm that a page passes. A specialist still reviews it by hand.
How we fix it
A specialist fixes this in your site's code or content, and we re-test the page before you sign off.
Official text: W3C, Understanding 3.1.2 Language of Parts. Checks listed from axe-core 4.14.0.
Related criteria
Does your site fail 3.1.2?
Our free scan checks up to 50 of your pages and tells you which criteria fail and where.