HTML <tbody> tag defines body section of the table. It groups all the rows present in the body section of the table.
Here, the background-color of the tbody is gray. Its purpose is to distinguish it from thead and tfoot sections.
You can see the real basic structure of data is present in the tbody section.
|<table>||table tag represents data in the form of rows and columns.|
|<thead>||thead tag defines heading section at the top of the table.|
|<tfoot>||tfoot tag represents footer section at the bottom of the table.|
Both tags may be omitted.
All the global attributes are applicable on the tbody element.
Was this article helpful?
Get the newsletter