Create a HTML document with all table elements (Table, Caption, Table Row, Table Data element, Table Heading Element,THEAD, TFOOT, TBODY)


Input


<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
  border: 1px solid black;
}
</style>
</head>
<body>
<CAPTION>Saving Details</CAPTION>
<table>
  <thead>
    <tr>
      <th>Month</th>
      <th>Savings</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>January</td>
      <td>10000</td>
    </tr>
    <tr>
<td>February</td>
      <td>30000</td>
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td>Sum</td>
      <td>40000</td>
    </tr>
  </tfoot>
</table>
</body>

</html>




Output


No comments:

Post a Comment