In order for the large table (table) to be displayed at the time of the download, the table is interpreted as a whole when the browser parses the HTML, and the tbody can be used to optimize the display. If the table is long, it can be partially displayed with tbody, not waiting for the entire table to be downloaded. Download a piece of display, the table is huge when there is a better effect.
Tbody, TFOOT, thead generally used is not much, for more complex pages, page layout to use a lot of tables, the structure of the table is relatively complex, so the table is divided into three parts: head , text and footnotes . And these three parts are used: thead, tbody, tfoot to mark.
The head of the THEAD table is used for headings and things like that.
The body of the TBODY table data ontology
Tfoot table footer and so on.
I think the most direct use is:
Tbody the contents of the containing row download the priority display without waiting for the table to end. Also, pay attention to a place. Table rows are originally displayed from top to bottom. However, when Thead/tbody/tfoot is applied, it is displayed "from head to toe", regardless of the order of your line code. That is, if thead written in the back of the tbody, the HTML display, or the first thead after the tbody display.
function of THEAD, tbody and tfoot in table tags