How to fix: invalid page language code
WCAG 2.2 success criterion 3.1.1 (level A)
Why it matters
Assistive technology cannot pick the right voice.
How to fix
Use a valid language code such as en, nb or nn.
<html lang="nb">
Test it yourself
- View source and read the lang on <html>: it must be a real language code, such as "nb", "nn", "no" or "en".
Common mistakes
- lang="norwegian" or lang="nb_NO" (underscore) instead of "nb" or "nb-NO".
- A typo like lang="eng".
Check your own site
Find this and other problems on your website in 30 seconds, free.