3.1.2 Language of Parts (AA)

Definition for WCAG 2.0 success criterion 3.1.2

3.1.1 Language of Parts: The human language of each passage or phrase in the content can be programmatically determined except for proper names, technical terms, words of indeterminate language, and words or phrases that have become part of the vernacular of the immediately surrounding text.

This criterion is meant to ensure that user agents can correctly present content written in multiple languages and so that assistive technologies that help users understand text use appropriate language-specific knowledge and resources. This applies to graphical browsers as well as screen readers, Braille displays, and other voice browsers.

If there are no changes of language in the page, this criterion is marked as not applicable.

Testing success criterion 3.1.2

Input into spreadsheet

Fail
Phrases or passages of text where the human language differs from that of the surrounding text are not programmatically identified with a container that has a lang attribute, or the value of the lang attribute is not appropriate (either invalid or not reflective of the text's human language).
Pass
All phrases or passages of text where the human language differs from that of the surrounding text are programmatically identified with a container that has an appropriate lang attribute.
N/A
The sample is for a native application.

How to test

The following screenshot shows the lang attributes displayed on a page after running the "Show Lang Attributes" function.

Show lang attributes
French language indicated for blockquote

Input into spreadsheet

Fail
Screen reader output is not in the correct human language for phrases and passages of text where the human language differs from that of the surrounding text, or the language is not explicitly defined in the document / application for those phrases and passages (meaning that it relies solely on heuristics).
Pass
Screen reader output is in the correct human language for all phrases and passages of text where the human language differs from that of the surrounding text, and the language is explicitly defined in the document / application.

How to test