<tbody> HTML Tag
In this article we will discuss about how to use the tbody Tag in HTML.
The HTML <tbody>
tag is used for grouping table rows. The tbody tag must be used if we are using thead and tfoot tag in HTML.
HTML Code:
<html>
<head>
<title>This is my first web page</title>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>
Company
</th>
<th>
Category
</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
Footer2
</td>
<td>
Footer 2
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>
LG
</td>
<td>
TV
</td>
</tr>
<tr>
<td>
Usha
</td>
<td>
Fan
</td>
</tr>
<tr>
<td>
Samsung Galaxy
</td>
<td>
Mobile
</td>
</tr>
</tbody>
</table>
</body>
</html>
|
Output:
Ask Your Question