These tags are mainly used to improve the loading of table tags and display, in plain words, is distributed loading. In a traditional browser, when loading, it is not shown when all the elements in the tag are downloaded, and of course the user experience is not good. After adding a few labels to the T-
Table loads the elements in the table, in the order of the labels written in the table.In order for the large form (table) to be downloaded
Can be segmented, meaning that when the browser parses the HTML, table is interpreted as a whole, using tbody 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, table
It has a better effect when it's huge.
tbody, TFOOT, thead are generally not used much, for more complex pages, page layout to use a lot of tables, forms
Structure is also relatively complex, so the table is divided into three parts: header, text and footnotes. And these three parts are used separately: 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. Which means if Thead is written in the
After the tbody, the HTML is displayed, or the tbody is displayed with the first thead.
New knowledge, record.
Thead tbody tfoot Loading order problem in table