Marking the Language of Page Content

A page can set its main language and identify passages in another language when the surrounding interface and content differ.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a translated shell
  2. Check nested material

Trace a translated shell

An English article may appear inside a German navigation interface. Mark the article region as English so compatible speech systems can pronounce its prose appropriately. Main page landmarks locate that region.

Check nested material

A section in another language may need a local language marking while retaining the document's default elsewhere. Distinct page representations describe another reason to identify language explicitly.[1][2]

References

  1. W3C, Web Content Accessibility Guidelines 2.2 ↩
  2. W3C Web Accessibility Initiative, Forms Tutorial ↩