An image-map, with clickable areas:
![]()
The <area> tag is supported in all major browsers.
The <area> tag defines an area inside an image-map (an image-map is an image with clickable areas).
The <area> element is always nested inside a <map> tag.
Note: The usemap attribute in the <img> tag is associated with the <map> element's name attribute, and creates a relationship between the image and the map.
HTML5 has some new attributes, and some HTML 4.01 attributes are no longer supported.
In HTML the <area> tag has no end tag.
In XHTML the <area> tag must be properly closed.
New : New in HTML5.
| Attribute | Value | Description |
|---|---|---|
| alt | text | Specifies an alternate text for the area. Required if the href attribute is present |
| coords | coordinates | Specifies the coordinates of the area |
| href | URL | Specifies the hyperlink target for the area |
| hreflangNew | language_code | Specifies the language of the target URL |
| mediaNew | media query | Specifies what media/device the target URL is optimized for |
| nohref | value | Not supported in HTML5. Specifies that an area has no associated link |
| relNew | alternate author bookmark help license next nofollow noreferrer prefetch prev search tag |
Specifies the relationship between the current document and the target URL |
| shape |
default rect circle poly |
Specifies the shape of the area |
| target | _blank _parent _self _top framename |
Specifies where to open the target URL |
| typeNew | MIME_type | Specifies the MIME type of the target URL |
The <area> tag also supports the Global Attributes in HTML.
The <area> tag also supports the Event Attributes in HTML.
HTML DOM reference: Area object
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.