mapping in html
To use mapping in image there is a map tag with its area type & coordinates, how we use it let see with an example of the tag:
eg: <map name="map_name" > - -(all area parts..) - -</map >
use of area tag : area tag is used to define an area with a source refrence
eg: <area shape="rect" coords="0,40,50,100" href="source" >
area shape may be rect,circle or polygon.according to it's shape we have to use coordinates like in circle we have to give radii,center coordinates..
we have to use 'usemap="#map_name"'in our image tag..
let we take an example of it..
let take a code here with that's output --
<html >
<body>
<img src="image.jpg" usemap="#map_name">
<map name="map_name">
<area shape=shape="rect" coords="0,0,150,50" href="http://prashanttyagi923.blogspot.in">
<area shape="rect" coords="200,0,400,50" href="http://prashanttyagi923.blogspot.in/p/blog-page.html">
</map>
</body>
</html>
No comments:
Post a Comment