Missing html lang attribute: why it matters
The html lang attribute tells browsers and screen readers your page's language. Find pages missing it and learn how to add it for SEO and accessibility.
What it means
The HTML document is missing the lang attribute on the root element, which means the browser and crawlers cannot determine the page's primary language.
Why it matters
Search engines use this attribute to serve the correct language version in results and to route content to the right regional index. Screen readers depend on it for pronunciation, and since Googlebot reads pages like a screen reader, a missing lang attribute can degrade accessibility signals that correlate with ranking. AI agents also rely on it to select the right language model and to avoid mis-parsing content.
How to fix it
- Add the lang attribute to the root element: <html lang="en">
- Verify the value matches the page's primary language (ISO 639-1 code like en, de, fr, ja).
- If the site serves multiple languages, ensure each language version has its own lang value and that the canonical URL points to the correct version.
Example
<html>
<head>...</head><html lang="en">
<head>...</head>Add a BCP-47 code to the <html> tag. It tells screen readers which pronunciation to use and helps Google confirm the page language.
When it's not a problem
This is not a problem if the page is a language-agnostic template (like a favicon-only redirect page) or if the site uses a single language consistently and the missing attribute does not affect the rendered HTML that Googlebot sees. It is also fine on pages where the language is explicitly declared via the Content-Language HTTP header and the page has no user-facing text content.
How Crawlinx detects it
We read the lang attribute on the <html> element. If it's absent or empty, we flag it. Use a valid code like en, en-US, or fr.
How common is it?
1427 audited sites in our corpus currently show this issue. The breakdowns below show which platforms, gatekeepers, verticals and countries are most exposed.
FAQ
- Does the html lang attribute affect SEO?
- It's a minor, supporting signal for language targeting and a real accessibility requirement (screen-reader pronunciation). Google mainly infers language from content, but the attribute removes ambiguity.
Related guides
Audit your own site — free
157 checks, internal PageRank, render-diff. No signup, results in ~30s.