Easy Tutorial
❮ Canvas Createradialgradient Att Th Width ❯

HTML <a> hreflang Attribute

HTML <a> Tag

Example

The hreflang attribute specifies the language of the linked document:


Browser Support

All major browsers support the hreflang attribute.


Definition and Usage

The hreflang attribute of the <a> tag is used to specify the language of the linked document.

This attribute only works if the href attribute is set.

Note: Unlike the lang attribute, the hreflang attribute does not specify the language used in the content of the tag, but rather the language of the document called by the href attribute.


Differences Between HTML 4.01 and HTML5

NONE.


Syntax

Attribute Values

Value Description
language_code A two-letter language code that specifies the language of the linked document. <br>For a list of all available language codes, visit our Language Code Reference

HTML <a> Tag

❮ Canvas Createradialgradient Att Th Width ❯