Docs · Technical SEO
The lang attribute
Page has a language attribute
What this check looks at
Optia checks that the <html> element declares its language, e.g. <html lang="en">.
Why it matters
The lang attribute tells screen readers which pronunciation rules to use and helps search engines serve the page to the right language audience. Without it, assistive tech guesses — often badly.
How to fix it
- Set
langon the root<html>element using a valid BCP 47 code (en,en-GB,de, …). - Match the code to the page's actual primary language.
- For multilingual sites, pair it with
hreflanglinks between language versions.