English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <area> hreflang Eigenschaft

Die hreflang-Eigenschaft gibt die Sprache der Ziele im Bereich an. Diese Eigenschaft wird nur verwendet, wenn die href-Eigenschaft gesetzt ist

 HTML <area> Tag

Online-Beispiel

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 ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the hreflang attribute.

Definition and Usage

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.

HTML 4.01 between5difference

The hreflang attribute is an HTML5 New attribute of the <area> tag.

Syntax

<area hreflang="language_code">

Attribute Value

ValueDescription
language_codetwo-character language codes specify the language of the linked document.
To view all available language codes, please visit our Language Code Reference Manual.

 HTML <area> Tag