coding:-
Image.html
<html>
<title>
image mapping
</title>
<img src="D:\3rd year\6th sem\lab exercise\web technology\program2\pic.bmp"usemap="#shapes"/>
<map name="shapes"id="shapes">
<area shape="circle" coords="58,50,40" href="circle.html" title="circle"alt="circle"/>
<area shape="rect" coords="136,11,227,89" href="rectangle.html" title="rectangle"alt="rectangle"/>
<area shape="poly" coords="309,13,358,89,257,89" href="polygon.html" title="polygon"alt="polygon"/>
<area shape="default" nohref="nohref" title="default"alt="default"/>
</map>
</body>
</html>
Circle.html
<html>
<title>
circle
</title>
<body>
<h2><center>Area of circle</center></h2>
<p>radius of the circle=3</p>
</body>
</html>
Rectangle.html
<html>
<title>
rectangle
</title>
<body>
Area of rectangle
<p> length of the rectangle=4<br>
breadth of the rectangle=3</p>
</body>
</html>
Polygon.html
<html>
<title>
polygon
</title>
<body>
Area of Polygon
<p> polygon has many sides. Each side is of different length </p>
</body>
</html>
No comments:
Post a Comment