HTML <area> hreflang attribute
Definition and Usage
hreflang
attribute specifies the language of the target URL in the specified area.
Only when the href attribute use this attribute only
Note:This attribute is purely advisory.
Example
Use the hreflang attribute to specify the target URL's language for each area in the image map:
<map name="planetmap"> <area shape="rect" coords="0,0,114,576" alt="Sun" href="sun.html" hreflang="en"> </map>
Syntax
<area hreflang="language_code">
Attribute Value
Value | Description |
---|---|
language_code |
Two-letter language codes specify the language of the linked document. To view all available language codes, please visit ourLanguage Code Reference Manual. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |