How to fix: invalid language on page parts
WCAG 2.2 success criterion 3.1.2 (level AA)
Why it matters
A wrong lang value makes screen readers switch to the wrong voice.
How to fix
Use valid codes such as lang="en" or lang="nb" on parts in another language.
<p lang="en">Free shipping worldwide</p>
Test it yourself
- Search the source for lang= on elements inside the page (quotes, product names, language switchers) and check each is a real language code.
Common mistakes
- lang="se" for Swedish (it is "sv"; "se" is Northern Sami).
- lang="dk" for Danish instead of "da".
Check your own site
Find this and other problems on your website in 30 seconds, free.