1.8 URL structure & internationalisationMediumVerified

Missing lang attribute on <html>

What it is

With no lang attribute on the html element, browsers, screen readers and translation tools have to guess the page language. Declaring it is a one-line accessibility and clarity win. No language declared. Hurts accessibility (screen-reader pronunciation) and clarity of language.

Why does missing lang attribute on <html> matter for AI search?

Hurts accessibility (screen-reader pronunciation) and clarity of language.

How do you fix it?

Add lang to the html element.

How do you find it on your site?

  1. View source and check the html tag for a lang attribute.
  2. Add lang with the correct language code if it is missing.
  3. Set it per page on multilingual sites, not just one global value.
  4. Confirm it matches the page content.

Which ranking and citation factors does it touch?

Declaring the language supports accessibility and correct handling by assistive and translation tools. It is a baseline quality signal.

What is the impact?

Low-medium; a11y. Direct (WCAG).

What is the evidence?

Declare page language for accessibility. W3C, Web Content Accessibility Guidelines (WCAG) 2.2

Frequently asked questions about missing lang attribute on <html>

What does "Missing lang attribute on <html>" mean?

No language declared.

How do you fix missing lang attribute on <html>?

Add lang to the html element.