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>
The image value starts with #, for example usemap="#sections". The map uses the same identifier without the hash: name="sections".
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.
The detailed <area> tutorial covers rectangle, circle, polygon and default regions.
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.
| SUNIL VERMA | 10-02-2010 |
| Thanks .. i need such type of TAG which i did not find on any other tutorials .. | |