Skip to content

Error · valid-lang

Invalid language on part of the page

Lighthouse / axe call it: lang attribute must have a valid value · [lang] attributes do not have a valid value

A section declares a language code that doesn't exist.

Who it leaves out: blind people (screen readers)

How to fix it

Use a valid code. Code included.

In the code

Use a valid BCP 47 code in the lang attribute of this element, e.g. lang="fr".

Our scanner writes and tests this correction for you.

Don't want to fix this by hand, element by element?

Enter your address. In about a minute you get every failure on the page explained, and the corrected code, already tested in a browser, for each element we can fix. Free, no account.

One more chance: free scan · no account

The full report covers the pages that matter (checkout, cart, contact) and every fix, for $15 once or with monitoring.

Related errors

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