Click on different sections of the image below to trigger alerts:
<img src="image.jpg" alt="Image Map Example" usemap="#sampleMap">
<map name="sampleMap">
<area shape="rect" coords="10,10,140,90" href="#" alt="Top Left Rectangle" title="Top Left">
<area shape="circle" coords="220,100,50" href="#" alt="Center Circle" title="Center Circle">
<area shape="poly" coords="10,110,140,110,75,190" href="#" alt="Bottom Triangle" title="Bottom Triangle">
</map>
<map>Defines an image map. Contains one or more <area> elements for clickable regions.
<area>Defines a clickable region. Attributes include shape, coords, and href.
nameIn <map>, links the map to an <img> using usemap.
shapeDefines the clickable area. Options: rect, circle, poly.
coordsSpecifies coordinates of the clickable area depending on shape.
hrefDefines the link or action when a region is clicked.
altProvides alternative text for accessibility or if the image fails to load.
titleShows a tooltip on hover for additional info.
usemapIn <img>, references the <map> by name.