2. Write HTML code to create tables as shown below:(part "d").
Answers
Answer:
The code is written below hope it helpful
<html>
<head>
<title>My table</title>
</head>
<body><center>
<table Border=2 width=300px height=200 cellpadding="30">
<tr>
<td bgcolor="#F0FF33" colspan=2><center><b>Mammals - Plants - Fishes</b></center></td></tr>
<tr>
<td rowspan=3 <h4><b> <center>Mammals</center></b>
</h4> <br><center> Farm Animals <br> Big Game <br> Small Critters </center></td>
<td bgcolor="#daf7a6"><center>cow</center></td></tr>
<tr>
<td bgcolor="#daf7a6"><center>Pig</center></td</tr>
<tr>
<td bgcolor="#daf7a6"><center>Horse </center></td</tr>
</table> </center>
</body>
</html>
Answer:
Explanation:
<html>
<body><center>
<table Border=1 width=300px height=200 cellpadding="30">
<tr>
<td colspan=2><center><b>Mammals - Plants - Fishes</b></center></td></tr>
<tr>
<td rowspan=3 <h4><b> <center>Mammals</center></b>
</h4> <br><center> Farm Animals <br> Big Game <br> Small Critters </center></td>
<td ><center>cow</center></td></tr>
<tr>
<td ><center>Pig</center></td</tr>
<tr>
<td ><center>Horse </center></td</tr>
</table> </center>
</body>
</html>