Write a html script to form the following table
Attachments:
![](https://hi-static.z-dn.net/files/dbe/96cb0215edb5ee2e4d535546500150b8.jpg)
Answers
Answered by
5
Answer:
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<th colspan="2" style="background-color:yellow"> Mammals - Plants - Fish </th>
</tr>
<tr>
<td rowspan="3"> <b> Mammals </b> <br> Farm Animals <br> Big Game <br> Small Critters </td>
<td>Cow</td>
</tr>
<tr>
<td>Pig</td>
</tr>
<tr>
<td>Horse</td>
</tr>
</table>
</body>
</html>
Explanation:
colspan use to Merge column and rowspan is use to mege rows.
Similar questions