3.1.2 Language of Parts Level AA

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.

[View on W3C.org]

Testing & Remediation

How to test: Open up your site view the the content to see if there are any phrases or pieces of text where the human language is different from the surrounding text. For any phrase or piece of text that is different from the surrounding text, ensure that there is an appropriate container with the proper "lang" attribute You should also open your site up in a screenreader (JAWS, VoiceOver, etc) and have it read the content of you site, ensuring that the identified phrase or text is read in the correct human language. How to remediate: For any phrase or piece of text that is displayed in a separate language from the surrounding text, implement a "lang" attribute for that particular piece of text (such as - "xml:lang="de" for a German quote surrounded by English).

Questions and Answers

Can I specify the language of specific parts of my page?

As an example, let's suppose I want to write the following. 'The french word bonjour means hello in english.' My sites language is english, but I would like screen readers to know that 'bonjour' is written in french. Is that something I should even bother...