lang=""

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O

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


<p>This is an example of specifying the language of the quotation. <q lang="ja">日本語の引用文です。</q></p>

Output

This is an example of specifying the language of the quotation. 日本語の引用文です。