Image Map in HTML is a technique in which multiple links are present on one image. When person click on one part of image that part will take it to Second website, if clicked of second half of the image it will take the person to third website and so on. It depends how many links are present on the image. For example, there can be multiple links on Pakistan map (Pakistan image map) by click the Punjab circle that link will take you to another site which gives the information about the cities in Punjab its culture and every think related to Punjab. Or there can be another Punjab image map which can take you to different sites of Punjab cities.
Tag for creating image map:
• .
o Attributes of Map
Name
• Attributes of Area:
o Href
o Shape
o Coords
How to use these tags
Working of Map tag:
Working of Area Tag
Tag for creating image map:
• .
o Attributes of Map
Name
• Attributes of Area:
o Href
o Shape
o Coords
How to use these tags
Working of Map tag:
Working of Area Tag
<Map name="name the map">
<area shape="circle" coords="384,231,160" href="address">
// for circle
<area shape="rect" coords="191,248,294,362" href="address">
// for rectangle
<area shape="poly" coords="303,313,303,487,425,436" href="address">
// for polly
</Map>
<img src="Image.gif" border="0" usemap="#name the map"
alt="any text description of image" width="465" height="561">