The html element must have a valid value for the lang attribute
Log in (Premium content) Request a demo
The HTML document must contain a valid
lang attribute or must correspond to a valid
lang code for multilingual screen reader users who may prefer a language other than the default.
The Algorithm, in Simple Terms
Ensures that every HTML document has a
lang attribute and that it contains a valid value
Why this is Important
When configuring a screen reader, users select a default language. If the language of a webpage is not specified, the screen reader will assume it is the default language set by the user. This becomes an issue for users who speak multiple languages and access website in more than one language. It is important to specify a language and ensure that it is valid so website text is pronounced correctly.
How to Fix the Problem
lang attribute to the
html element (e.g.
<html lang="en">) whose value represents the primary language of document.
- HTML 4