June 2025
Beginner
817 pages
31h 30m
English
Link-sensitive graphics (also called image maps) are just links embedded within a graphic. Such an image map defined in HTML consists of three parts:
ImageThis is the actual image that’s added to the HTML document with the img element. Additionally, within the <img> tag, you must specify the HTML attribute usemap with an anchor to a map element:
<img src="image.jpg" alt="alternText" usemap="#mapname">
map elementYou also need the map element with the anchor name you specified earlier in the img element with the usemap attribute. The anchor name in the map element must be specified without the leading # in the name, unlike the img element. Between the introductory <map name="mapname"> ...
Read now
Unlock full access