SEOscanner.app

Rule · Document head and metadata

The html element declares the page language

SEO-HEAD-04C3 Standard· w2

Class
C3 Standard
Weight
2
Severity on fail
minor
Applies to
the HTML Standard

Scope and evidence

Evaluated on page (P). The book marks this requirement STANDARD.

Fail conditions

Each condition has a stable code and a reason template. The evaluator fills the placeholders from observed values only; no sentence in a report is generated.

  • missing

    The <html> element of {url} has no lang attribute. The HTML Standard encourages a lang attribute on the root element. Google does not use it to detect a page's language, so this is a standards and accessibility finding.

  • malformed

    The lang value “{value}” on {url} is not a well-formed language tag.

The documented fix

Set lang from the page's locale (en, en-US, de).

Sources, quoted

These are the passages the rule rests on, stored once in the knowledge base and emitted exactly as written. A citation marked for specific conditions appears only on findings with those codes.