HTML Image Maps with <map> and <area>

An HTML image map makes different regions of one image act as separate links. Use an image with a usemap attribute, a matching <map name>, and one or more <area> elements.

<img src="images/map.jpg" usemap="#sections" alt="Tutorial map">
<map name="sections">
  <area shape="rect" coords="213,36,378,93" href="../jquery/site_map.php" alt="jQuery tutorials">
</map>

Matching usemap and name Top ↑

The image value starts with #, for example usemap="#sections". The map uses the same identifier without the hash: name="sections".

Plus2net image-map example Top ↑

Plus2net tutorial image map PHP tutorials jQuery tutorials SQL tutorials HTML tutorials

Accessibility and responsive layouts Top ↑

Give the image useful alternative text and each linked <area> meaningful alt text. Because coords uses image pixels, responsive resizing can make hotspots inaccurate unless coordinates are adjusted.

Area shapes Top ↑

The detailed <area> tutorial covers rectangle, circle, polygon and default regions.

HTML images Area tag





plus2net.com







SUNIL VERMA

10-02-2010

Thanks .. i need such type of TAG which i did not find on any other tutorials ..



✖
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