Observe the following table and write the html code to generate it:

Answers
<HTML>
<HEAD>
<TITLE>Table</TITLE>
<BODY>
<TABLE BORDER=1>
<TR>
<TH ALIGN=CENTER COLSPAN=5>Marks</TH>
</TR>
<TR>
<TD ROWSPAN=2>English</TD>
<TD ROWSPAN=2>Maths</TD>
<TD COLSPAN=3 ALIGN=CENTER>Science</TD>
</TR>
<TR>
<TD>Physics</TD>
<TD>Chemistry</TD>
<TD>Biology</TD>
</TR>
<TR>
<TD>95</TD>
<TD>89</TD>
<TD>96</TD>
<TD>72</TD>
<TD>80</TD>
</TR>
</TABLE>
</HTML>
Answer:
<html>
<head>
<TITLE>Table</TITLE>
<body>
<table border = 1>
<tr>
<th align center colspan =5> Marks</th>
</tr>
<tr>
<td rowspan = 2>English </td>
<td rowspan = 2>Maths </td>
<td colspan =3 align center >Science</TD>
</tr>
<tr>
<td> Physics </td>
<td>Chemistry</td>
<td>Biology</td>
</tr>
<tr>
<td>95</td>
<td>89</td>
<td>96</td>
<td>72</td>
<td>80</td>
</tr>
</table>
</html>
explanation :
html stands for Hypertext Markup Language. In html,
<html> → used to specify the appearance of the web page.
<tr> → stands for table row.
<td> → stands for table data
<title> → stands for title of the web page.
<table>→ this tag is the HTML's best way of arranging information in space, and controlling layout.
<td rowspan =2 > will take up two rows.
< colspan =5 > will take up five columns.