hreflang Language of the Link Target
Usage/Remarks
- the content of the link itself,
- the current article, or
- the structural object in which the link is embedded.
Script and Language Codes
- A language code Language (typically using the shortest ISO 639)
- Potentially followed by a hyphen and then a script code (Script using the ISO 15924 code)
- Potentially followed by a hyphen and a region code (Region using the ISO 15924 code)
- Language subtag plus Script subtag: hreflang="zh-Hant" (Chinese written using the Traditional Chinese script)
- Language subtag plus Script subtag: hreflang="zh-Hans" (Chinese written using the Simplified Chinese script)
- Language-Script-Region: hreflang="zh-Hans-CN" (Chinese written using the Simplified script as used in mainland China)
- Language-Script-Region: hreflang="sr-Latn-RS" (Serbian written using the Latin script as used in Serbia)
- hreflang="ja-Hira" (Japanese written in Hiragana)
- hreflang="ja-Hrkt" (Japanese written in Hiragana + Katakana)
- hreflang="ja-Jpan" (Japanese written in Han + Hiragana + Katakana)
- hreflang="ja-Hani" (Japanese written in Kanji (Hanzi, Hanja, Han))
- hreflang="ja-Kana" (Japanese written in Katakana)
OPTIONAL on many elements; click for list and usage
<abbrev>, <app>, <award-id>, <bio>, <chem-struct>, <collab>, <contrib>, <custom-meta>, <element-citation>, <email>, <ext-link>, <extended-by>, <funding-source>, <graphic>, <inline-graphic>, <inline-media>, <inline-supplementary-material>, <institution>, <issue-id>, <license>, <long-desc>, <media>, <mixed-citation>, <named-content>, <nlm-citation>, <pronunciation>, <pub-id>, <related-article>, <related-object>, <restricted-by>, <self-uri>, <std>, <supplementary-material>, <uri>, <volume-id>
Value | Meaning |
---|---|
An alphanumeric string, which may include hyphens | An abbreviation for a natural language (such as “en” for English or “de” for German) or for a language and a script (“ja-Kana”). |
Restriction | @hreflang is an optional attribute; there is no default. |