HTML <area> Element for Image Maps

The <area> element defines a clickable region inside an image map. It must be placed inside a <map> element, while the related image points to that map using usemap="#name".

<img src="images/map.jpg" usemap="#sections" alt="Tutorial sections">
<map name="sections">
  <area shape="circle" coords="62,39,25" href="../php_tutorial/site_map.php" alt="PHP tutorials">
</map>

shape and coords values Top ↑

  • rect: x1,y1,x2,y2
  • circle: x,y,radius
  • poly: a sequence of x,y coordinate pairs
  • default: the remaining image-map area; do not use coords with it.

Working image-map demo Top ↑

Try the active regions in this original Plus2net map:

Plus2net tutorial map with clickable regions PHP tutorials jQuery tutorials SQL tutorials HTML tutorials

Important attributes Top ↑

When an <area> has an href, provide meaningful alt text describing the link destination or purpose. Link attributes such as target, rel, download and referrerpolicy can also be used where appropriate.

Responsive-image caution Top ↑

Image-map coordinates are pixel based. If the image is resized with CSS, the original coordinates do not automatically scale with it. Test image maps carefully on responsive layouts or use an alternative interaction pattern when the image must resize substantially.

HTML image maps HTML images CSS cursor





plus2net.com







USAMA

08-01-2010

Good, i got the idea about html web progrmming language
dany

23-02-2010

it is very useful for the beginners who d'nt about the HTML....
bethel

27-02-2010

this is great. our teacher wants us to make our own webpage. and it sucks! haha! :) thanks for putting the tags.
imran

31-03-2010

its very nice idea about the html web programing
dylan

11-04-2010

thanks this was a lot of help!
surendra

12-01-2012

Dear Sir your tutorials very nice thankyou, one doubt for me i arrange html &css but not navigation bar linking another page how please tell me thankyou
michael

03-10-2012

Hope this works



✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer