axe-core rule: html-lang-valid
The page declares an invalid language code
What it is
The html element has a lang attribute, but its value is not a valid language code, so screen readers cannot use it.
Who it blocks
Screen reader users, who may get the wrong speech synthesizer language.
How to fix it
Use a valid BCP 47 language tag, such as "en", "en-US", "es", or "fr-CA".
Example fix
<!-- Before -->
<html lang="english">
<!-- 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.