Global lang-attribute validity (validity)

The global language attribute includes a valid language code such as for example, "en", "fr" or "fi" (ISO 639-1 Language Codes)


Lang attribute with empty value:

This page has <lang=" "> on the <html> element. Because it's empty, it fails to indicate the language of the page, violating WCAG 3.1.1.


Note: Possible to implement because empty or invalid lang attribute values can be programmatically detected in the HTML and compared against valid BCP 47 language codes.

axe detected: 3.1.1  |  QualWeb detected: 3.1.1