You are here: Reference > HTML > attributes > hrefLang (a, link)

hrefLang attribute (a, link)

Browser support:
Sets the language of a linked resource or anchor element.
JavaScript page for this attribute: hreflang. You can find other example(s) there.

Possible values:

String that sets the language code. For more information about language codes click here.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the hrefLang attribute:
<a href="http://www.example.com/" hreflang="en-US" target="_blank">anchor text</a>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content