HTML lang attribute
- Previous page inputmode
- Next page popover
- Go up one level HTML Algemene Eigenschappen
Definition and usage
lang
The attribute specifies the language of the content of the element.
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 | Specify the language code for the content of the element. 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 up one level HTML Algemene Eigenschappen