HTML Link hreflang attribute


In the following example, the hreflang attribute indicates that the linked document is written in Japanese:
<link href="domoarigato.htm" rel="parent" charset="ISO-2022-JP" hreflang="ja" />

Definition and Usage

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

Browser Support

The hreflang attribute is not supported in any of the major browsers.


<link hreflang="value" />

Attribute Values

Value Description
language_code A two-letter language code that specifies the language of the linked document. 
HTML Link hreflang attribute Reviewed by 1000sourcecodes on 02:25 Rating: 5
Powered by Blogger.