How to make a table (sample only)
This is how to make a table:
<html>
<head> <title> Table </title>
</head>
<body>
<table width="50%" cellpadding="7" cellspacing="0" border="1" bordercolor="green">
<tr bgcolor="lightgreen">
<th rowspan="2"> Roll No. </th>
<th rowspan="2"> Name of the student </th>
<th colspan="3"> Marks in </th>
<th rowspan="2"> Total </th>
</tr>
<tr bgcolor="lightgreen">
<th> English </th>
<th> Maths </th>
<th> Science </th>
</tr>
<tr>
<td align="center"> 1 </td>
<td> Suman </td>
<td align="center"> 84 </td>
<td align="center"> 96 </td>
<td align="center"> 81 </td>
<td align="center"> 271 </td>
</tr>
<tr>
<td align="center"> 2 </td>
<td> Aryan </td>
<td align="center"> 68 </td>
<td align="center"> 94 </td>
<td align="center"> 89 </td>
<td align="center"> 251 </td>
</tr>
<tr>
<td align="center"> 3 </td>
<td> Naveen </td>
<td align="center"> 71 </td>
<td align="center"> 83 </td>
<td align="center"> 73 </td>
<td align="center"> 227 </td>
</tr>
<tr>
<td align="center"> 4 </td>
<td> Vinod </td>
<td align="center"> 55 </td>
<td align="center"> 65 </td>
<td align="center"> 86 </td>
<td align="center"> 206 </td>
</tr>
<tr>
<td align="center"> 5 </td>
<td> Sonia </td>
<td align="center"> 61 </td>
<td align="center"> 92 </td>
<td align="center"> 75 </td>
<td align="center"> 228 </td>
</tr>
</body>
</html>
Output:
Comments