HTML hreflang property
Example
An image map with clickable areas:
Try it »
Browser support





All major browsers support the hreflang property.
Definition and Usage
The hreflang property is used to specify the language of the linked document.
The hreflang property can only be specified when the href property is used.
Note: This attribute is purely advisory.
Differences between HTML 4.01 and HTML5
The hreflang property is new in HTML5 for the tag.
Syntax
Attribute values
| Value | Description |
|---|---|
| language_code | A two-letter language code specifying the language of the linked document. |
| To view all available language codes, please visit our Language Codes Reference. |
HTML tag