HTML TH <th> Tag
0 2131
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>
Share:
Comments
Waiting for your comments