Specifying a valid
BCP 47 language
helps screen readers announce text properly.
Lighthouse reports when the
<html> element does not have a valid value
How to fix this problem
To fix this problem,
use valid language codes in
The language specified in the HTML document must be one of the valid languages
to ensure text is pronounced correctly for screen reader users.
For example, this sets the language of the document to English:
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.