language of an element


lang=""

Browser
Internet Explorer Firefox

The lang attribute specifies the language of an element.

This attribute can be used in most elements.


<p lang="en"> - </p>


Attribute Value Explanation
lang=" " language code sets the language code

Example

<ul>
<li lang="en-US">Ford Mustang GT</li>
<li lang="en">Jaguar XJ</li>
<li lang="it">Enzo Ferrari</li>
<li lang="de">Mercedes-Benz SLR</li>
<li lang="fr">Renault Alpine A110</li>
</ul>
Output
  • Ford Mustang GT
  • Jaguar XJ
  • Enzo Ferrari
  • Mercedes-Benz SLR
  • Renault Alpine A110