How to use th tag


<th>

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 <th> tag is supported in all major browsers.

What is th tag

th tag means table head. th tag used to header cell in an HTML table. basically th tag bold his content

Leave a Reply

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