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>, <article-version>, <award-desc>, <award-group>, <award-id>, <award-name>, <bio>, <chem-struct>, <collab>, <conference>, <contrib>, <custom-meta>, <element-citation>, <email>, <ext-link>, <extended-by>, <funding-source>, <funding-statement>, <graphic>, <inline-graphic>, <inline-media>, <inline-supplementary-material>, <institution>, <issue-id>, <license>, <long-desc>, <media>, <mixed-citation>, <named-content>, <nlm-citation>, <product>, <pub-id>, <related-article>, <related-object>, <resource-name>, <restricted-by>, <self-uri>, <supplementary-material>, <support-source>, <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. |
Tagged Sample
A related article in German
...
<related-article id="ra1" related-article-type="alt-language"
hreflang="de" xlink:href="https://dx.doi.org/10.5414/ALP33164" ext-link-type="doi"/>
...