Technical SEOAccessibility

HTML Lang Attribute Checker

Verify the <html> lang attribute to ensure correct language indexing and screen reader compatibility.

Paste HTML Root or Document Source

HTML Lang Attribute Verification
✓ Valid Language: "en-US"

Declared in root <html lang="en-US">.

✓ Language properly defined. Screen readers and search engine geolocators will correctly parse this page language.

About HTML Lang Attribute Checker

Verify that your `<html>` root tag includes a valid `lang` attribute. Assist screen readers in choosing the correct accent and aid search engines in language indexing.

How to Use the HTML Lang Attribute Checker

  1. 1

    Paste HTML Tag

    Paste your `<html>` opening tag or page header.

  2. 2

    Validate Code

    Verify ISO 639-1 language code and optional country subtag (e.g., en-US).

  3. 3

    Review Guidance

    Check recommendations for international SEO and WCAG accessibility.

Key Features & Calculation Capabilities

  • Validates ISO 639-1 language codes (en, es, fr, de, etc.)
  • Validates BCP 47 region subtags (en-US, en-GB, fr-CA)
  • Flags missing or empty lang attributes

Worked Example

Missing lang tag on site root

Inputs:
HTML: <html><head><title>Home</title></head>
Calculated Results:
Issue: Missing lang attribute in <html> tag

Adding lang='en' helps screen readers and translation tools identify the language.

Practical Limitations & Considerations

  • Validates code format; does not translate page content or verify whether text matches the declared language.
Got Questions?

Frequently Asked Questions

Screen readers rely on the lang attribute to switch pronunciation and inflection. It also helps browser translation plugins detect the primary language.