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 whitespace value only:

This page sets the <lang=" "> attribute on the <html> element to a space character. This is not a valid language tag and fails WCAG 3.1.1.


Note: Possible to implement because whitespace-only values in the <lang=" "> attribute can be programmatically detected and validated against BCP 47 syntax rules.

axe detected: 3.1.1  |  QualWeb detected: 3.1.1