ImageMapping and Tables
ImageMapping and Tables
AND
HTML TABLES
Image Mapping
• Step 2 –
• Define areas of image map
• Step 3 –
• Include map information in HTML
document
• Step 4–
• Connect image with map information
Defining area for image mapping
<map name="shapemap">
<area shape="circle" coords="60,50,10"
alt=“Circle” title="Circle"
href=“circle.html">
</map>
</body>
Rectangle
<map name="shapemap">
<area shape=“rect" coords=“30,85,60,105"
alt=“Rectangle” title=“Rectangle"
href=“rectangle.html">
</map>
</body>
Polygon
<map name="shapemap">
<area shape=“poly"
coords=“60,90,100,90,115,120,100,140,70,140,55,120"
alt=“Polygon” title=“Polygon” href=“polygon.
html">
Image Mapping for Different Shapes
<html>
<body>
<p>Click on the circle or rectangle or polygon</p>
<map name="shapemap">
<area shape="circle" coords="60,50,10"
alt=“Circle” title="Circle"
href=“circle.html">
<area shape=“poly"
coords=“60,90,100,90,115,120,100,140,70,140,55,120"
alt=“Polygon” title=“Polygon” href=“polygon.
html">
</map>
</body>
</html>
Tables
Two
Rows
Attributes of a Table
Attribute Value Description
align left Specifies the alignment of a table according to
center the surrounding text.
right
<tr>
<td> 22030121002</td>
<td> BCA</td>
<td> 2022-25 </td>
</tr>
<tr>
<td colspan=“3”>Strength of Division A :
46 </td>
</tr>
</table>
<td> rowspan attribute
<tr>
<td> 21030121002</td>
<td> BCA</td>
<td> 2021-24 </td>
</tr>
</table>
Table Caption