Easy Tutorial
❮ Att Th Valign Tag Command ❯

HTML <area> hreflang Attribute

HTML <area> Tag

Example

An image map with clickable areas:


Browser Support

All major browsers support the hreflang attribute.


Definition and Usage

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

The hreflang attribute can only be specified if the href attribute is used.

Note: This attribute is purely advisory.


Differences Between HTML 4.01 and HTML5

The hreflang attribute is a new attribute for the <area> tag in HTML5.


Syntax

Attribute Values

Value Description
language_code A two-character 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 <area> Tag

❮ Att Th Valign Tag Command ❯