axe-core rule: html-has-lang
The page does not declare its language
What it is
The html element has no lang attribute, so screen readers cannot tell which language profile and pronunciation rules to use.
Who it blocks
Screen reader users may hear the entire page read with the wrong accent and pronunciation rules, which can render it unintelligible. Translation tools also rely on this attribute.
How to fix it
Add a lang attribute with the correct language code to the html element on every page.
Example fix
<!-- Before -->
<html>
<!-- After -->
<html lang="en">
This is one of the barrier types BarrierScan checks for on every scan. Request a free accessibility scan to see whether it appears on your site, alongside the rest of the automated findings.