function of THEAD, tbody and tfoot in table tags

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.