Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML link hreflang Attribute

HTML hreflang property

HTML link Tag Reference HTML tag

Example

Here, the hreflang attribute simply indicates that the linked document is written in English:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost no major browser supports the hreflang attribute. However, it can be used by search engines or in scripts.


Definition and Usage

The hreflang property specifies the language of the text in the linked document.

The hreflang attribute can only be used when the href attribute is set.

**Note:** This attribute is purely advisory.


Differences between HTML 4.01 and HTML5

none.


Syntax

Language code reference.


HTML link Tag Reference HTML tag