Write output of the following HTML code.
<html> <head> <title> Table </title> </head>
<body>
<table border=”1”>
<tr> <td align=”center” rowspan=”2”> ONE </td> <td> TWO </td> <td>THREE
</td> </tr>
<tr> <td> Rose </td> <td> Lily </td> </tr>
<tr> <td align=”center”> Pansy </td> <td align=”center” colspan=”2”> Dahlia
</td> </tr>
</table> </body> </html>
Answers
Answered by
12
refee above attachment
Attachments:
Answered by
6
HTML CODE:
Explanation:
<tr> tag is used for table row and
<td> tag is used for table description
This below table is created as output for the above html code
One Two Three
Rose Pancy
Dalia Lilly
As the first <tr> tag included two descriptions
Rose and Lilly
The next <tr> tag alignment is center and it had
Dalia and pancy
So they are at center of the table
We observe that rose and lilly are not at centre as the align=”centre” is not specified for the Rose and Lilly
Similar questions
Math,
6 months ago
Math,
6 months ago
Math,
6 months ago
India Languages,
1 year ago
Math,
1 year ago