How to use thead tag


<thead>

All Tags not showing in online page, but show on view source.

<table border="1">
  <thead>
  <tr>
    <th>Roll no</th>
    <th>Name</th>
  </tr>
  </thead>
  <tfoot>
  <tr>
    <td>11</td>
    <td>Raj</td>
  </tr>
  </tfoot>
  <tbody>
  <tr>
    <td>12</td>
    <td>Ravi</td>
  </tr>
  <tr>
    <td>13</td>
    <td>Santosh</td>
  </tr>
  </tbody>
</table>

Code show like this:

Roll no Name
11 Raj
12 Ravi
13 Santosh

Browser Support

The <thead> tag is supported in all major browsers.

What is thead tag

thead tag means table header. thead tag used to group header content in an HTML table.

Leave a Reply

Your email address will not be published. Required fields are marked *