On-page and content

How to fix a missing lang attribute

These pages do not declare which language they are in. Search engines guess, screen readers pick a pronunciation, and browsers offer the wrong translation.

What it is, and what it costs

The lang attribute on <html> states the page's language. Missing it mostly hurts accessibility (a screen reader may read English text with the wrong voice) and removes a small hint search engines use to serve the right audience.

How to fix it

Add the attribute to the <html> element, for example <html lang="en">. Most themes set it from a site-language setting; a hand-built page needs it added to the template.

How to check your site

View source and check the opening <html> tag for lang.

Questions people ask

What about multilingual sites?
Set lang to each page's actual language, and use hreflang to connect the language versions.

Does your site have this?

Check your site to confirm each page declares its language.

See also

All SEO checks →