Skip to content

Error ยท html-has-lang

The page doesn't declare its language

Screen readers guess the language and read Spanish with an English voice (or vice versa): unintelligible.

Who it leaves out: blind people (screen readers)๐Ÿ”Ž also SEO

How to fix it

Declare the language once. Code included, verified.

In the code

Add lang="xx" to <html> (e.g. <html lang="es">) so screen readers use the right pronunciation.

โœ“ Our scanner writes and tests this correction for you.

Where to fix it without code

If your site runs on one of these platforms, the fix is in the admin panel:

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.