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

HTML area hreflang property

HTML hreflang property

HTML area Tag Reference HTML tag

Example

An image map with clickable areas:

Planets

Sun

href="sun.htm" hreflang="en">

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the hreflang property.


Definition and Usage

The hreflang property is used to specify the language of the linked document.

The hreflang property can only be specified when the href property is used.

Note: This attribute is purely advisory.


Differences between HTML 4.01 and HTML5

The hreflang property is new in HTML5 for the tag.


Syntax

Attribute values

Value Description
language_code A two-letter language code specifying the language of the linked document.
To view all available language codes, please visit our Language Codes Reference.

HTML area Tag Reference HTML tag