Skip to content
SEO Toolbox Online

HTML Lang Attribute Checker

Checks <html> declares a valid lang attribute.

What this tool checks

  • HTML lang attribute

    Checks <html> has a valid lang attribute.

    Why it matters: The lang attribute tells browsers and assistive technology which language the page is in, affecting pronunciation, hyphenation and translation prompts.

    If it fails: Set a valid language code, e.g. <html lang="en"> or <html lang="en-GB">.

    Source: w3.org/International/questions/qa-html-language-declarations

Related tools