04 HTML -Table-Alignment HTML record
Using “table” tag, align the images as follows:
PROGRAM:-4
Save:-html_table_align4.html
<html>
<body bgcolor="skyblue">
<table border=2 align=center cellspacing=5>
<tr>
<caption align=center> <h1>ALIGNMENT OF IMAGES USING TABLE TAG</h1></caption>
<th> <img src="images/4/1.png" height=150 width=150>
<th> <img src="images/4/2.png" height=150 width=150>
<th> <img src="images/4/3.png" height=150 width=150>
<th> <img src="images/4/4.png" height=150 width=150>
</tr>
<tr>
<td><img src="images/4/5.png" height=150 width=150></td>
<td align=center colspan=2>
<b><FONT COLOR=RED>The Tortoise and the Hare On-line</FONT></b>
</td>
<td> <img src="images/4/6.png" height=150 width=150> </td>
</tr>
<tr>
<th> <img src="images/4/7.png" height=150 width=150>
<th> <img src="images/4/8.png" height=150 width=150>
<th> <img src="images/4/9.png" height=150 width=150>
<th> <img src="images/4/10.png" height=150 width=150>
</tr>
</table>
</body>
</html>
Output:-
Comments
Post a Comment