HTML TH Tag || TH Tag in HTML
×

HTML TH <th> Tag

2167

The HTML TH <th> tag defines a header cell that can present in the first row of an HTML table. This tag is also commonly referred to as the <th> element. Table cells may contain two types of information, header information, and data.

The Table Head <th> tag defines a cell that contains header information. The <td> tag defines a cell that contains data.

Program:

<!DOCTYPE html>
<html>
<head>
  <title>HTML TH Tag</title>
</head>
<body>
 <h2>Example of TH Tag</h2>
<table border="1">
  <tr>
    <th>Emp ID</th>
    <th>Name</th>
    <th>Email ID</th>
   </tr>
<tbody>
   <tr>
     <td>101</td>
     <td>Ram</td>
     <td>dummy123@icon.com</td>
   </tr>
   <tr>
     <td>102</td>
     <td>Dummy</td>
     <td>dummy1234@icon.com</td>
    </tr>
    <tr>
      <td>103</td>
      <td>Jai</td>
      <td>hello@gmail.com</td>
    </tr>
</tbody>
</table>
</html>




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments