Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When content has been referred to in a different language, ensure that it has been marked with a lang attribute to help screen reader users or other assistive technology users to properly convert the text into synthetic speech.

Example:

An HTML Web page includes links to versions of the page in other languages (e.g., Deutsch, Français, Nederlands, Catalan, etc.). The text of each link is the name of the language, in that language. The language of each link is indicated via a lang attribute.

Code Block
<ul>
  <li><a href="..." lang="de">Deutsch</a></li>
  <li><a href="..." lang="it">Italiano</a></li>
  <li><a href="..." lang="fr">Français</a></li>
  ...
  <li><a href="..." lang="zh-hant">繁體中文</a></li>
</ul>