HTML: Language attribute

By Xah Lee. Date: . Last updated: .

What is language attribute

Language Attribute allows you to specify a human language, such as English, Chinese, Russian.

Language Attribute is a global attribute, meaning that you can add it to any tag.

<span lang="zh">中文</span>

valid values for Language Attribute are HTML: language tags (BCP 47) .

Why use language attribute