Click to See Complete Forum and Search --> : Link in <IMG> tag verses Link in <MAP> tag


learninghtml
12-08-2003, 02:06 AM
Hi guys and gals,
Just curious about this one...

What's the difference between implementing a link in an image tag verses implementing a link in an image map tag.

Does it make a difference?

Pros and Cons?

Thanks

ray326
12-08-2003, 08:50 AM
If an image in an anchor will do then an image map is a waste of time and bandwidth.

jochem
12-08-2003, 10:52 AM
Use a link in a <map> tag if your image contains several areas that should link to something. In that case you'll have to add the coordinates of the link areas. If your image is just one link, simply use the <img> tag.<img src="YourImage.gif" border="0" usemap="#Links">
<map name="Links">
<area shape="rect" coords="0,0,52,10" href="Page01.htm">
<area shape="rect" coords="54,0,120,10" href="Page02.htm">
</map>Cheers, Jochem :cool: