<map> Tag in HTML

In this article i am going to explain about map tag in HTML
  • 1574

Definition

Map tag is used to define an image map. An image map is an clickable area,  It just like a hyperlink when you click to those image/area  that send to other page or resource.

Supporting Browsers

Internet Explorer, Mozilla Firefox, Google Chrome, Safari and Opera are the supporting browsers.

Example
 

<html>
<head>
    <title></title>
</head>
<img
src="file://localhost/C:/Users/Public/Pictures/Sample%20Pictures/Desert.jpg"
    width="145" height="126" alt="Planets" usemap="#planetmap"
/>
<map
name="planetmap">

    <area shape="rect" coords="0,0,82,126" href="sun.htm"
alt="Sun" />
</map>
</html>

 Output

map.ht12.jpg

Further Readings

  You may also want to read these related articles

 Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.