<body>
<table>
<caption>Marks of Two subjects</caption>
<thead>
<tr>
<th>Subjects</th>
<th>Marks</th>
</tr>
</thead>
<tbody>
<tr>
<td>English</td>
<td>78</td>
</tr>
<tr>
<td>Maths</td>
<td>67</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Total</th>
<th>145</th>
</tr>
</tfoot>
</table>
</body>
xxxxxxxxxx
table th ,td{
border:1px solid black;
border-collapse:collapse;
background-color: #a7cec1;
width:200px;
padding: 10px;
text-align: center;
}
caption
{
font-size: larger;
font-weight: 600;
color: #5151db;
}
td
{
background-color: #b198c7;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.