I1 · International SEO

    HTML Lang Checker — is your page's language declared?

    The `lang` attribute on your `<html>` tag tells everyone — engines, browsers, screen readers — what language your page is written in. This check confirms it's declared. It's a one-line attribute (<html lang="en">) that's easy to forget, but it underpins correct language handling, accessibility, and the foundation of any international setup.
    Updated June 2026 · Technical SEO & GEO · Part of International SEO

    Check your HTML lang attribute

    Paste a URL — GEObubbly checks whether your page declares its language with the html lang attribute.

    ✓ Free check✓ 1 signal✓ No signup required
    In short: The HTML lang attribute declares the page's language to browsers, screen readers and engines. It should be present and match the actual content language.

    What does the HTML lang check verify?

    It checks that the page declares its primary language correctly. Specifically:

    • Attribute present — the <html> tag has a lang attribute.
    • Valid value — it uses a valid language code (like en, de, or en-GB for region).
    • Matches content — the declared language matches the actual language of the page's content.

    A valid lang attribute matching the content passes; a present but generic or imprecise declaration is a warning; a missing lang attribute is a fail.

    How is it evaluated, and how is it scored?

    GEObubbly checks the <html> tag for a valid lang attribute. It's a core, scored International SEO check that runs directly against the page's markup.

    Why the lang attribute matters for SEO and GEO

    The lang attribute on the <html> element declares the primary language of the page — for example <html lang="en"> or <html lang="en-GB"> for a regional variant. It's small but does real work. For accessibility, screen readers use it to choose the correct pronunciation and voice, so a French page declared as English would be read aloud with the wrong accent and rhythm — confusing or unusable for the listener. For browsers, it informs spell-checking and offers of translation. For engines, it's a clear signal of the page's language, which supports correct handling and helps your content be served to the right audience. It's also the foundation of international SEO: before hreflang can map language and region variants of a page, each page needs to declare its own language clearly. Getting it right is trivial — one attribute with a valid code that matches the content — yet it's commonly missing or left at a template default that doesn't match the actual language. For GEO, a correctly-declared language helps AI engines understand and correctly attribute your content by locale. It's the starting point of International SEO.

    How this check scores
    Pass: lang attribute present and matches the content language.
    Warning: lang present but generic or slightly mismatched.
    Fail: No lang attribute, or it contradicts the content.

    FAQ

    The lang attribute is a declaration on the <html> tag that specifies the primary language of a page's content, using a standard language code — for example <html lang="en"> for English or <html lang="es"> for Spanish. You can include a region too, like en-GB for British English. It tells browsers, search engines and assistive technologies what language to expect, so they can handle the content correctly. It's a single attribute, but it's the standard way to declare a page's language and a foundational piece of both accessibility and international SEO.

    Related checks in International SEO

    I2
    hreflang tags & reciprocity
    I3
    Country targeting signals
    I4
    Local relevance (GEO)

    Audit your page across all 10 checks in International SEO

    See which checks pass, warn or fail — in seconds.

    Run a free audit →
    ← Back to the full International SEO guide
    Free TrialContact