HTML link hreflang property
Examples
Here, hreflang property is just linked documents are written in English:
<link href="tag-link.html" rel="parent" rev="subsection" hreflang="en">
try it"
Browser Support
Almost no major browsers support hreflang property. However, it can be used in scripts or through a search engine.
Definition and Usage
hreflang attribute specifies the linked document the Chinese language.
To use the property only when hreflang set href attribute.
Note: This property is pure suggestion.
Differences between HTML 4.01 and HTML5
no.
grammar
<link hreflang="langauge_code">
Property Value
值 | 描述 |
---|---|
language_code | 值为双字母的语言代码,规定被链接文档的语言。 如需查看所有可用的语言代码,请访问我们的 语言代码参考手册 。 |
HTML <link> tag