HTML lang Attribute (original) (raw)

Last Updated : 29 Aug, 2024

This attribute is used to specify the language of the element content. Some examples of languages are en for English, es for Spanish, etc.

**Syntax:

**Attribute Value: This attribute contains a single value _language_code which is used to specify the language of the content.

**Difference between HTML 4.1 and HTML 5: In HTML 5, the lang attribute can be used with any HTML element but in HTML 4.1 the lang attribute is used with ,
, , ,


, , , and