Easy Tutorial
❮ Att Script Type Att Global Tabindex ❯

HTML <area> href Attribute

HTML <area> Tag

Example

Image map with clickable areas:


Browser Support

All major browsers support the href attribute.


Definition and Usage

The href attribute specifies the target of the link in the area.

If the href attribute is not used, the <area> tag is not a link.


Differences Between HTML 4.01 and HTML5

In HTML5, the <area> tag no longer uses the href attribute; instead, placeholder is used to specify the link.


Syntax

Attribute Values

Value Description
URL The URL of the link. Possible values: Absolute URL - points to another site (e.g., href="http://www.example.com/sun.htm")<br>Relative URL - points to a file within the site (e.g., href="sun.htm")<br>Anchor URL - points to an anchor in the page (e.g., href="#sun")

HTML <area> Tag

❮ Att Script Type Att Global Tabindex ❯