Specifying a valid
BCP 47 language
helps screen readers announce text properly.
Lighthouse reports when any
lang attribute does not have a valid value.
How to fix this problem
To fix this problem,
Use only valid language codes in the
The language specified in the HTML document must be one of the valid languages
to ensure text is pronounced correctly for screen reader users.
Learn more in lang attribute must have a valid value.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.