HTML Map Tag


HTML Image Map Tag

    The HTML image map is a way to select different links from different places on a graphic. For example, if we had a map of the United States, we could have a different link for every state. Just click on the state and get the state link! The map tag is called using the USEMAP variable in the HTML IMG tag. The map area locations are set using the HTML AREA tag.



Syntax (build map)


<img src="url" alt="description" usemap="mapname">
<MAP mapname="name">
  area-tags
  area-tags
</MAP>

Modifiers

NAME="MAPNAME"
The MAPNAME modifier defines the collection of AREA tags describing different parts of the image.