HTML5 Tag: Area


The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map. If the area element has no href attribute, then the area represented by the element cannot be selected, and the alt attribute must be omitted.

<div id="imageMap">
    <img src="globe-map.png" alt="map" usemap="#country">
    <map name="country">
        <area shape="rect" coords="0,0,20,150" href="india.htm" alt="India">
        <area shape="circle" coords="200,500,30" href="canada.htm" alt="Canada">

Copyright @ 2024 DevelopNew. All Rights Reserved