How HTML image map works

Viewed 21

My HTML image map is not working I used a online tool for generating coordinates which I noramlly use and it always works but this time I have tried dozens of pictures but there it isnt working but whenever I remove height and width attributes from image it starts working but that is useless just because image becomes to larger without these attributes:

<!Doctype HTML>
<html>
  <head>
    <title>First webpage</title>

  </head>
  <body>

    <img src="my.jpg" usemap="#image_map" width="500" height="300">
    <map name="image_map">
      <area alt="laptop" title="laptop" href="https//www.google.com" coords="1896,384 3892,768 3527,2991 1530,2620 1549,2595 1549,2595 1549,2595 " shape="polygon">
    </map>

  </body>
</html>
0 Answers
Related