12.1 Every page has a lang attribute
Our bilingual users will likely have more than one language downloaded for their screen reader. For these users their screen reader needs to know what language to read the page in. By setting the lang
attribute on the html
element the screen reader will be able to switch to the proper language if needed. This attribute is also needed if text occurs on the page in a different language than the rest of the page.
WCAG 3.1.1: Language of Page Opens in a new window
WCAG 3.1.2: Language of Parts Opens in a new window
Details
- Every page has a properly set
lang
attribute on it'shtml
element. - Any text on the page not in the primary language has it's own
lang
attribute.