HTML Lang Checker
Confirm that browsers and assistive technology receive a document language.
Inspect the HTML lang attribute
The check displays the declared document language and the number and codes of any hreflang alternates found on the same page.
Interpret the result
The result helps compare the primary document language with the localized audience and alternate-language declarations.
Catch common problems
A missing, overly broad, invalid, or wrong language code can affect pronunciation, translation behavior, accessibility tools, and locale consistency.
How to interpret the HTML lang attribute
The result helps compare the primary document language with the localized audience and alternate-language declarations. The tool reads the attribute but does not detect the language of the prose, test screen readers, or validate every locale convention.
What the tool evaluates
The check displays the declared document language and the number and codes of any hreflang alternates found on the same page. The result helps compare the primary document language with the localized audience and alternate-language declarations.
- The check displays the declared document language and the number and codes of any hreflang alternates found on the same page.
- A missing, overly broad, invalid, or wrong language code can affect pronunciation, translation behavior, accessibility tools, and locale consistency.
- Use a valid BCP 47 language tag that matches the page’s main content, then compare it with templates, HTTP metadata, and hreflang targets.
Common problems and next steps
A missing, overly broad, invalid, or wrong language code can affect pronunciation, translation behavior, accessibility tools, and locale consistency. Use a valid BCP 47 language tag that matches the page’s main content, then compare it with templates, HTTP metadata, and hreflang targets. The tool reads the attribute but does not detect the language of the prose, test screen readers, or validate every locale convention.
Frequently asked questions
What does the the HTML lang attribute check cover?
The check displays the declared document language and the number and codes of any hreflang alternates found on the same page.
How should I use the result?
The result helps compare the primary document language with the localized audience and alternate-language declarations. Use a valid BCP 47 language tag that matches the page’s main content, then compare it with templates, HTTP metadata, and hreflang targets.
What are the limits of this tool?
The tool reads the attribute but does not detect the language of the prose, test screen readers, or validate every locale convention.
Related URL tools and guides
Hreflang Checker
Extract hreflang alternates and review language-region targets and x-default.
Learn more →Structured Data Checker
Find JSON-LD blocks, validate their JSON syntax and list Schema.org types.
Learn more →Canonical URL Checker
Find canonical tags, duplicate declarations and non-self-referencing destinations.
Learn more →