If a page doesn't specify a lang attribute,
a screen reader assumes the page is in the default language
that the user chose when setting up their screen reader.
Lighthouse reports when the
<html> element does not have a
How to fix this problem
To fix this problem,
lang attribute to the
Screen readers use different sound libraries for each language. Screen readers can switch between these language libraries easily, but only if the documents specify which language(s) to read and when. If the language is not specified, it is impossible to understand anything when screen readers are using the wrong language library.
Learn more in
<html> element must have a lang attribute.
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.