Skip to content

Error · html-lang-valid

The declared language is invalid

The language code is misspelled, so screen readers ignore it.

Who it leaves out: blind people (screen readers)🔎 also SEO

How to fix it

Use a valid code such as "es" or "en". Code included.

In the code

Use a valid BCP 47 code in <html lang="…">, such as "en", "es" or "pt-BR".

Our scanner writes and tests this correction for you.

Does your site have this error?

Free check in about a minute, no account.

One more chance: free scan · no account

Related errors

Automated testing covers roughly half of WCAG criteria; a full conformance claim also requires manual review. Technical information, not legal advice.