HTML lang Attribute
Definition and Usage
The lang attribute specifies the language of the element's content.
Common examples are "en" for English, "hi" for Hindi, "fr" for French and so on.
Applies to
The lang attribute is a Global Attribute, and can be used on any HTML element.
| Element | Attribute |
|---|---|
| All HTML elements | lang |
Example
Example
Some French text in a paragraph:
<p lang="fr">je t'aime...</p>
Browser Support
| Attribute | |||||
|---|---|---|---|---|---|
| lang | Yes | Yes | Yes | Yes | Yes |
Comments
Post a Comment