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 French, and so on.
Syntax
<element lang="language_code">
| Value | Description |
|---|---|
| language_code | Specifies the language code for the element's content. Language code reference |
Browser Support
| Attribute | |||||
|---|---|---|---|---|---|
| lang | Yes | Yes | Yes | Yes | Yes |
Related Pages
HTML Tutorial: HTML Attributes
HTML DOM Reference: HTML DOM lang Property