HTML <tbody> Tag


In an HTML table, the element is used to organize the body information.

The element, in combination with the and elements, is used to identify each section of a table (body, header, footer).

Browsers can utilize these components to enable table body scrolling independent of the header and footer. Furthermore, when printing a huge table that covers numerous pages, these features allow the table header and footer to be printed at the top and bottom of each page.

It should be noted that the element must have one or more tags.

The <tbody> tag must be used as a child of a table element, following any <caption>, <colgroup>, and <thead> components. By default, the <thead>, <tbody>, and <tfoot> components have no effect on the table's layout. However, you may style these components using CSS (see example below)!

Syntax

Example

Preview

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
<tbody> Yes Yes Yes Yes Yes