Lang attribute removed: when the html tag loses its language
In brief
Lang attribute removed means your html tag no longer declares the page language: Google infers it from the content, but screen readers and some parsers lose an explicit signal. It is a hygiene regression, fixed by restoring one attribute.
What is it?
The lang attribute on the html tag is gone.
Why check this signal?
Moderate impact: Google detects the language from the content, but the attribute helps screen readers (pronunciation) and some parsers. It is a hygiene regression more than a ranking one.
When it is NOT a problem
- The language is reliably declared elsewhere and the content is clearly monolingual: Google detects it easily.
- The page is a technical, non-indexed screen not read by screen readers (back office, internal tool).
- You are on the very first crawl of the page: Seogard does not alert until it has a baseline.
<!-- lang attribute missing -->
<html>
<head>...</head><html lang="en">
<head>...</head>The lang attribute explicitly states the content language: essential for screen-reader pronunciation and useful for parsers.
How to fix it
- Open the main layout and check the opening html tag.
- Add the lang attribute with the correct language code (for example lang="en").
- If the site is multilingual, make sure each version serves the right language code.
- Re-crawl the page to confirm the lang attribute is present.
This scan checks technical compliance: viewport, charset, HTTPS, hreflang
Is this issue on your site?
Does your html tag still declare its language after a deploy? Enter a URL: Seogard compares the raw HTML and the render and alerts you if the lang attribute disappears. Free, no credit card.
- No credit card
- Account required · 14-day trial
What you get back
Clean accessibility and an explicit language signal for every tool.
Check this signal with Seogard's continuous SEO monitoring.
Frequently asked questions
Does the lang attribute affect Google ranking?
The direct impact is moderate: Google mainly detects language from the content. The attribute is still a useful explicit signal, especially for accessibility and some parsers.
What value should lang hold?
A standard language code, for example en for English or fr for French. You can specify the region (en-US, fr-FR) but it is not required.
Related rules
Updated July 10, 2026