HTML area hreflang property
Examples
With clickable image map area:
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="sun.htm" hreflang="en">
</map>
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="sun.htm" hreflang="en">
</map>
try it"
Browser Support
All major browsers support hreflang property.
Definition and Usage
hreflang attribute specifies the language of the linked document.
Only when using the href attribute to specify the hreflang property.
Note: This attribute is purely advisory.
Differences between HTML 4.01 and HTML5
hreflang property is HTML5 <area> tag to add properties.
grammar
<area hreflang="language_code">
Property Value
值 | 描述 |
---|---|
language_code | 双字符的语言代码,指定被链接文档的语言。 如需查看所有可用的语言代码,请访问我们的 语言代码集参考手册 。 |