How do I find the HTML coords for a picture if I want to map it?

emilysbs

New member
I am brand new to this world of coding and just started self-teaching myself the basics of HTML and CSS. I am mostly learning from W3schools.com but I also supplement by looking through whatever I can find. I am stuck right now because I don't quite seem to grasp the concept of image mapping. I understand what all of this code means, except I don't know where the coord numbers can be found for any picture to try and replicate this on my own.

example code:
<html>
<body>

<p>Click on the sun or on one of the planets to watch it closer:</p>

<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" />

<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm" />
<area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm" />
<area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm" />
</map>

</body>
</html>

Thanks for any help!
 
Back
Top