How to fix: missing page language
WCAG 2.2 success criterion 3.1.1 (level A)
Why it matters
Screen readers may read the page with the wrong pronunciation.
How to fix
Set the lang attribute on the <html> element.
<html lang="nb">
Test it yourself
- View the page source and check the first <html> tag for lang="…".
Common mistakes
- Setting lang="en" on a Norwegian site because the theme was English.
- Forgetting lang on pages generated by plugins or checkout systems.
Check your own site
Find this and other problems on your website in 30 seconds, free.