HTML <map> Tag

The <map> tag is used to define a client-side image-map. An image-map is an image with clickable areas.

The required name attribute of the <map> element is associated with the <img>'s usemap attribute and creates a relationship between the image and the map.


<!DOCTYPE html>

<img src="world.gif" width="145" height="126" alt="world" usemap="#worldmap">

<map name="worldmap">
  <area shape="rect" coords="0,0,82,126" alt="inda" href="india.htm">
  <area shape="rect" coords="90,58,3" alt="usa" href="usa.htm">
  <area shape="rect" coords="124,58,8" alt="london" href="london.htm">


© copyright 2017-2022 Completedone pvt ltd.