Skip to content

All checks / Technical

Missing lang attribute on <html>

The lang attribute on the <html> element tells search engines and screen readers what language the page is in.

Critical missing-lang

In SEOCode's checks since 30 Apr 2026


Why this matters.

The lang attribute on the <html> element tells search engines and screen readers what language the page is in.

Runs on .html · Critical checks fail the pull request status, so the change cannot merge until it is fixed.


How to resolve it.

Add lang="en" to your <html> tag: <html lang="en">. Replace 'en' with the correct BCP 47 language code.

SEOCode writes this fix for you

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.


Where this comes from.

01

Localization

developers.google.com



Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

Free for public repositories · no credit card