Table Element
4.6
Lesson

Table Body

The <tbody> element is used to organize the body of a table.

It doesn’t change anything in the table’s layout. But, it is used to give the table’s HTML, a proper structure.

All the rows after the thead and before the tfoot elements can be placed inside the tbody element.

This way, the whole table gets a good clean layout, with caption at the top, thead as the header, tbody comprising all the data and tfoot making up the footer.