HTML lang Attribute
- Previous Page Inputmode
- Next Page Popover
- Go to Parent Level HTML-Globale Attribute
Definition and Usage
lang
The attribute specifies the language of the element content.
Common examples: "en" represents English, "es" represents Spanish, "fr" represents French, etc.
See also:
HTML Tutorial:HTML Attributes
HTML DOM Reference Manual:HTML DOM lang Attribute
Syntax
<element lang="language_code">
Attribute Value
Value | Description |
---|---|
language_code | Specifies the language code for the element content. Refer to |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
- Previous Page Inputmode
- Next Page Popover
- Go to Parent Level HTML-Globale Attribute