HTML <map>
query_builder | Christopher PisaniThe HTML element <map> is the parent of element <area> which defines a clickable area on an image.
<!--
Clicking on square takes you to google website
Clicking on circle takes you to yahoo website
-->
<img src="https://www.jazzo.co.uk/media/shapes.jpg" usemap="#shapes-map">
<map name="shapes-map">
<area shape="rect" title="Square" coords="18,20,220,225" href="https://www.google.com" target="__blank" />
<area shape="circle" title="Circle" coords="368,125,100" href="https://www.yahoo.com" target="__blank" />
</map>
Important Note :
The attribute
name
is required for this element.
Available Attributes
Attribute | Values | Functionality |
---|---|---|
name | text | The name of the map |