Check · a11y · not scored
Document language: what it measures
Whether the html element declares a language and whether it is a valid language tag.
How it is determined
The check reads the response your server returns and records what it found. That observation is stored with the report, so reopening an old audit shows what was true on the day it ran rather than what the page says now. It is not a live measurement, and it is not a model’s opinion of your page.
Ruleset a11y-document-language · category a11y · reported but never counted
What it cannot tell you
- Whether the page is actually written in that language.
- What to do about a page that mixes languages, which the specification leaves to the author.
If it failed, what to do
Set lang on the html element to the language the page is written in.
Then verify it yourself rather than trusting the next report: reload the page, view the source, and look at the thing the check described. A check you can falsify in ten seconds is the only kind worth having.