HTML <a> hreflang property
Examples
hreflang attribute specifies the language of the linked document:
<a hreflang="en" href="http://www.w3big.com/">本教程</a>
try it"
Browser Support
All major browsers support hreflang property.
Definition and Usage
hreflang property <a> tag language for specifying a linked document.
The property is set only a href property to work.
Note: lang attribute and the difference is, hreflang property does not specify a language tag content is used, but the language being used by the specified document href attribute call.
Differences between HTML 4.01 and HTML5
NONE.
grammar
<a hreflang="language_code">
Attribute Values
值 | 描述 |
---|---|
language_code | 双字符的语言代码,指定被链接文档的语言。 如需查看所有可用的语言代码,请访问我们的 语言代码集参考手册 。 |