Area html tag for hyper links on images
We can mark different areas in a map or image and generate a clickable areas by using html tag. We can point different areas of a image map to different pages by creating hyper links on the map.
Here is an example of image map
Let us try with this example.
<area shape='rect' cords='20,20,50,60'>
Here we have defined one rectangular shape with coordinates given in cords attribute.
We can add the target or href to the above tag like this
<area shape='rect' cords="20,20,50,60" href='mypage.php'>
The above area once clicked the mypage.php page will open
We can also add one alternate text to the area tag like this.
<area shape='rect' cords="20,20,50,60" href='mypage.php' alt='About my page'>
Area tag is used along with a <map> tag in creating clickable hyper links in an image.