English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Das <a> hreflang-Attribut spezifiziert die Sprachkategorie eines Dokuments im Link. In diesem Online-Beispiel wird gezeigt, wie das <a> hreflang-Attribut, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen zu seinen Attributwerten verwendet werden.
Die hreflang-Attribut spezifiziert die Sprachkategorie eines Dokuments im Link:
<a hreflang="zh" href="https://de.oldtoolbag.com/">Basic Tutorial Website</a>Test it out ‹/›
IEFirefoxOperaChromeSafari
All mainstream browsers support the hreflang attribute.
The hreflang attribute specifies the language of the linked document.
This attribute should only be used when the href attribute is set.
Note: This attribute is purely advisory.
Note: Unlike the lang attribute, the hreflang attribute does not specify the language used in the content of the tag, but specifies the language used in the document called by the href attribute.
None.
<a hreflang="language_code">
Value | Description |
---|---|
language_code | double-character language codes specify the language of the linked document. To view all available language codes, please visit our Language Code Reference Manual. |