Fix library · Accessibility
Telling browsers which language the page is in
This is a single attribute on a single line, and it decides whether a screen reader reads your page in an English accent or a French one. Get it wrong and the text becomes very hard to follow; leave it out and the software guesses.
No page language declared
What SEOPert detected
The page does not declare a language on its html element.
What this means
Declaring the page language helps screen readers pronounce text correctly and helps search engines serve the right audience.
How to fix it
- Set your site language in your website settings (e.g. English).
On WordPress
- Go to Settings → General → Site Language and choose your language.
If you are handing this to a developer
Set the lang attribute on <html>, e.g. <html lang="en">.
Check it worked. View the page source: the first line after <!doctype html> should read <html lang="en"> (or your language).
Related
Check your own site
See which of these apply to you.
The free audit checks up to 10 pages and tells you exactly what it found, in the same plain language as these guides. No account, no card.