Write HTML code to generate the following output:
code
<html>
<head>
</head>
<title>
</title>
<body>
<table width="500" border="1" bgcolor="yellow" bordercolor="red">
<tr>
<td rowspan="2" align="center"><b>Weather</td>
<td align="center" bgcolor="pink"><b>Delhi</td>
<td align="center" bgcolor="pink"><b>Mumbai</td>
</tr>
<tr>
<td align="center">40</td>
<td align="center">35</td>
</tr>
</table>
</body>
</html>
Output
code
<html>
<head>
</head>
<title>
</title>
<body>
<table width="500" border="1" bgcolor="yellow" bordercolor="red">
<tr>
<td rowspan="2" align="center"><b>Weather</td>
<td align="center" bgcolor="pink"><b>Delhi</td>
<td align="center" bgcolor="pink"><b>Mumbai</td>
</tr>
<tr>
<td align="center">40</td>
<td align="center">35</td>
</tr>
</table>
</body>
</html>
Output
| Weather | Delhi | Mumbai |
| 40 | 35 |
Comments
Post a Comment