<thead>



HTML <thead> Tag


The <thead> tag specifies a header content in an HTML table


Example :

<!DOCTYPE html>
<html>
  <head>
    <title>This is Title</title>
    <style>
      table {
        border-collapse: collapse;
        width: 100%;
      }
      th,
      td {
        border: 3px solid black;
        padding: 10px;
      }
      thead {
        background-color: rgb(219, 180, 255);
      }
      tbody {
        background-color: rgb(255, 180, 180);
      }
      tfoot {
        background-color: rgb(176, 255, 176);
      }
    </style>
  </head>
  <body>
    <table>
      <thead>
        <tr>
          <th>No.</th>
          <th>Name</th>
          <th>Age</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>1</td>
          <td>Denny</td>
          <td>21</td>
        </tr>
        <tr>
          <td>2</td>
          <td>Rex</td>
          <td>31</td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
          <td>3</td>
          <td>Venom</td>
          <td>23</td>
        </tr>
      </tfoot>
    </table>
  </body>
</html>

Output :