tbody tag

<Tbody>

Explanation

Tbody tag is used to group the contents in the body in a table.
<table border="value">
<thead>
<tr>
<th>Text</th>
</tr>
</thead>
<tbody>
<tr>
<td>Text</td>
</tr>
</tbody> </table>

Example Code:

Result :

Airline From - To Price (Rs)
Kingfisher Chennai to Mumbai 10000
Spicejet Delhi to Kolkata 8000

  • It must be used inside the <table>.
  • <thead> and <tfoot> can be added with this tag.
  • It should be placed after the <colgroup>, <thead> and <caption>.
It is available in the previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.

Limitations:

It is applicable to all major browsers.

Ask Questions

Ask Question