HTML <area> Tag
The HTML <area> element specifies a clickable region (or hotspot) inside an image map. A <map> tag is always nested inside an <area> element. This clickable area can be associated with a hyperlink.
Syntax
Attributes
| Attribute | Value | Description |
|---|---|---|
| alt | text | If the image cannot be displayed, alternative text will be provided. |
| coords | coordinates | The coordinate values for the clickable region are determined by the shape supplied. |
| download | filename | This indicates that the link will be used to download a resource. |
| href | URL | Specifies the area's hyperlink target. |
| hreflang | language-code | Specifies the destination URL's language. |
| media | media-query | Specifies what media/device the target URL is optimized for |
| referrerpolicy |
no-referrer
no-referrer-when-downgrade origin origin-when-cross-origin same-origin strict-origin-when-cross-origin unsafe-url |
Specifies which referrer information to send with the link |
| rel |
alternate
author bookmark help license next no-follow no-referrer prefetch prev search tag |
The association between the current document and the target URL is specified. |
| shape |
default
rect circle poly |
The clickable area's shape. |
| target |
_blank
_parent _self _top frame-name |
Specifies where the target linked URL should be displayed. |
| type | media-type | Specifies the media type of the target URL |
Supported Browsers
| Element | Chrome | Firefox | Safari | Edge / IE | Opera |
|---|---|---|---|---|---|
| <area> | Yes | Yes | Yes | Yes | Yes |