Correct language codes for different languages on the page has been set where applicable

Design Notes

None

Developer Notes

Setting language codes

Identifying the human language of the page exposes the content of the page to user agents and assistive technology with more accuracy — including correct pronunciation of words and display of characters.

For example <html lang="en">

It's also important to set the language code on parts of text. If your pages contain multiple languages, use the lang attribute with the relevant language code to identify changes in the language.

For example <p lang="fr">Ceci est écrit en français</p>

More information

Testing Notes

Correct language codes for different languages on the page has been set where applicable

The human language of each passage or phrase in the content can be programmatically determined.

Exceptions include: proper names, technical terms, words of indeterminate language, and words or phrases that have become part of the vernacular of the immediately surrounding text.

Steps to check

For example, where the main site language is English an a fragment is written in French the code should look something like this using a code inspector:

<p lang="fr">Ceci est écrit en français</p>

Impact range: Low

Test type: Manual