Description

An image maps is an image with clickable areas that usually act as hyperlinks.

The image is defined by the [<img>](<http://stackoverflow.com/documentation/html/587/images>) tag, and the map is defined by a [<map>](<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map>) tag with [<area>](<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area>) tags to denote each clickable area. Use the usemap and name attributes to bind the image and the map.

Basic Example

To create an image map so that each of the shapes in the image below are clickable:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7ff58fb6-f657-4b8d-add9-67ed7b0e3f84/Untitled.png

triangle, square, circle image

The code would be as follows:

<img src="<http://jaced.com/blogpix/2007/trisquarecircle/002.gif>" usemap="#shapes">
<map name="shapes">
    <area shape="polygon" coords="79,6,5,134,153,134">
    <area shape="rectangle" coords="177,6,306,134">
    <area shape="circle" coords="397,71,65">
</map>

You should see that the browser recognizes the areas when the cursor becomes a pointer. See a live demo on JSFiddle.