HTML lang Attribute
Definition and Usage
The lang attribute specifies the language of the element's content.
Common examples are "en" for English, "es" for Spanish, "fr" for France and so on.
Applies to
The lang attribute is part of the Global Attributes, and can be used on any HTML element.
Element | Attribute |
---|---|
All HTML elements | lang |
Example
Browser Support
Attribute | |||||
---|---|---|---|---|---|
lang | Yes | Yes | Yes | Yes | Yes |