Skip to main content

Language Attribute Checker

v1.1.0

Check lang attributes across HTML elements for i18n correctness.

Checks HTML documents for correct lang attribute usage — verifies the page-level lang on the html element, detects language switches on inline elements, and validates BCP 47 language tag syntax.

How to use
  • Paste your HTML or enter a URL to run the language attribute audit.
  • Verify the html element has a lang attribute with a valid BCP 47 tag (e.g. "en", "de", "zh-Hans").
  • Flag any sections in a different language that are missing a lang attribute override on their container.
  • Export the findings as a WCAG 2.1 success criterion 3.1.1 and 3.1.2 checklist item.