You are on page 1of 1

<!

DOCTYPE html>

<head>
<title>prectical 5</title>
<style>
th
{
background-color: rgb(248, 67, 67);
}
td
{
background-color: yellow;
}

</style>
</head>
<body>
<h1>write a program to create a table in html</h1>
<table border="2px red soild ">
<tr>
<th>S.no</th>
<td>1</td>
<th colspan="2">Email</th>
</tr>
<tr>
<th>name</th>
<td>xyz</td>
<td>xyz1@gmail.com</td>
<td>xyz2@gmail.com</td>
</tr>
<tr>
<th rowspan="2">Mobile</th>
<td>9909921213</td>
<th colspan="2">Address</th>
</tr>
<tr>
<td>9909932325</td>
<td>amreli</td>
<td>palanpur</td>
</tr>
</table>
</body>
</html>

You might also like