HTML <th> tag
Html <th> tag : Definition
• HTML <th> tag represents a header cell in an HTML table and in every html table elements has two type of cells:
- The header(<thead>) cell and
- The Data(<td>) cells.
• In which, the data cell will be used as the child tag of the parent <tr> tag.
• HTML <tbody> used to group the body content in an HTML table.
• The tbody tag defines the conjunction of thead tag and the tfoot tag in indicating each part of the table (header, footer, body).
Html <th> tag example
Output:
HTML thead, tbody, and tfoot elements
Stodent | Degree |
---|---|
Rony | B.E/ B.Tech |
Johny | Phd |
Prayag | M.Tech |