<html> element does not have a [lang] attribute
In plain wordsThe page says which language it is in.
A screen reader needs to know the language to pronounce the words correctly. Browsers also use it to offer translation.
What it means
Every page should say which language it is written in. It is one attribute on the first tag of the page. A screen reader uses it to choose the right voice and pronunciation. Without it, English text may be read with the rules of another language, which makes it close to unintelligible.
Browsers and translation tools can also use it to offer translation. Google says it does not use it for search: it reads the visible text to work out the language.
What causes it
- A hand-written page or an old template without the attribute.
- A theme that leaves it empty.
How to fix it
- Add the language to the opening html tag, for example <html lang="en">.
<html>
<html lang="en">
On your platform
- WordPress
- It follows the site language under Settings, General.
- Shopify, Wix, Squarespace, Webflow
- It follows the language set for the site. Check it if the site is not in English.
Check it yourself
View the page source and look at the very first <html> tag.
Or run a free audit: it checks this and 53 other things on your page in about a minute, and shows the proof for each one.
How we test it
- What we look at
- The lang attribute on the page.
- It passes when
- It is set, for example lang="en".
- What it is worth
- 3 of 148 points in rule book 0.5, in Accessibility basics. A rule that cannot be checked on a page counts neither for nor against it.
Questions
Which code do I use?
The two-letter code of the language: "en" for English, "el" for Greek, "de" for German. A region can be added, as in "en-GB".
What if one part of the page is in another language?
Put a lang attribute on that part, for example <p lang="fr">.
Sources
Where to read more, and where to check what this page says. Opened and read on 20 and 24 November 2026.
Also useful: what a good website score is, how we compare with PageSpeed Insights and the full rule book.
Does your website have this problem?
A free audit checks this and 53 other things, and shows the proof. About a minute, no email needed.