Success Criterion 3.1.2 Language of Parts Level AA
How to Meet this Success Criterion
In order to meet this success criterion, website visitors need to be able to identify language changes on a web page when they are different from the default language of that page.
Recommended Technique for SC 3.1.2 Language of Parts
Add the language attribute to an HTML tag enclosing text written in a different language than the default language of the page:
The children's song Where is Thumbkin is based on the French song Frère Jacques.
<p>The children's song Where is Thumbkin is based on the French song <strong lang="fr">Frère Jacques</strong>.</p>
Examples of ISO language codes:
"de" for German, "es" for Spanish, "fr" for French. To see other ISO language codes check out the complete online HTML Language Code Reference
Please Note: Failure of this success criterion would be if you don't define the language attribute on any given text written in a different language than the page's default language.
Additional Examples for SC 3.1.2 Language of Parts
Example: A German phrase in an English sentence
The original 1808 German title page of Goethe's play read simply Faust. Eine Tragödie.
<p>The original 1808 German title page of Goethe's play read simply <strong lang="de">Faust. Eine Tragödie</strong>.</p>
Example: Alternative language links on a Web page to view the page in different languages
<a href="de/index.php" lang="de">Deutsch</a> <a href="fr/index.php" lang="fr">Français</a>