[Skip navigation links]
Login

Web Standard WCAG 2 3.1.1

Description

Bad value for attribute lang.

Help

A BCP 47 lang attribute consists of hyphen-separated subtags. The first subtag identifies a natural language by its ISO 639 language code (e.g. en for English) and may be followed by additional subtags. The most common additional subtag is a two-letter ISO 3166 country code (e.g. GB for the United Kingdom to form en-GB). IANA maintains a registry of allowed subtags. A empty lang attribute is allowed (and means unknown language) but a lang containing only spaces is not allowed and causes a random language to be selected in a screen reader.

Applicable standards

Note: Section 508 Refresh (2017) checkpoints are equivalent to WCAG 2.0 level AA checkpoints.

Change history

This page describes a web site issue detected by SortSite Desktop and OnDemand Suite.

Rule ID: W3cHtml5Error-RnvErAval-lang