English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Die hreflang-Eigenschaft gibt die Sprache der Ziele im Bereich an. Diese Eigenschaft wird nur verwendet, wenn die href-Eigenschaft gesetzt ist
Bilder-Mapping mit klickbaren Bereichen:
<!DOCTYPE html> <html> <title>HTML:<area> hreflang Eigenschaft - 基础教程网 oldtoolbag.com</title> <body> <p>Bitte klicken Sie auf die Sonne, um sie aus der Nähe zu betrachten</p> <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.html" hreflang="en"> </map> </body> </html>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the hreflang attribute.
The hreflang attribute specifies the language of the target URL in the area.
Use this attribute only when the href attribute is set.
Note: This attribute is purely advisory.
The hreflang attribute is an HTML5 New attribute of the <area> tag.
<area hreflang="language_code">
Value | Description |
---|---|
language_code | two-character language codes specify the language of the linked document. To view all available language codes, please visit our Language Code Reference Manual. |