HTML hreflang Attribute
Example
<a href="https://www.google.com" hreflang="en">Google</a>
Meaning
The language of the hyperlinked page or document.
Notes: Use this attribute for advisory.
Standard Syntax
<element hreflang="languageCode">
Browser Support
Status
Applies to:
The hreflang attribute can be used on the following element:
Attribute Values
Value | Description |
---|---|
languageCode | Two letter language code. |
<area> Example
<img src="img/desk.jpg" usemap="#image-map">
<map name="image-map">
<area target="_blank" alt="Computer" title="Computer" href="img/computer.png" coords="365,99,905,783" shape="rect" hreflang="en">
<area target="_blank" alt="Cup" title="Cup" href="img/cup.png" coords="1047,672,97" shape="circle" hreflang="en">
<area target="_blank" alt="Mobile" title="Mobile" href="img/mobile.png" coords="960,385,1040,541" shape="rect" hreflang="en">
<area target="_blank" alt="Book" title="Book" href="img/book.png" coords="175,426,96,527,20,664,232,755,298,628,364,505" shape="poly" hreflang="en">
</map>
<link> Example
<head>
<link href="link.html" rel="parent" rev="subsection" hreflang="en">
</head>