HTML&CSS Basic Learning Note 1.17-the head and tail of the table

Source: Internet
Author: User

The head and tail of the table

Since there is a label representing the body of the table, the natural table's head and tail also have corresponding labels.

Use the <thead> tag in HTML to represent the head of the table, using the <tfoot> tag to represent the end of the table.

The structure of the,<table> after the head and tail is like this:

<Table>   <thead>    <TR>        ...    </TR>  </thead>   <tfoot>    <TR>        ...    </TR>  </tfoot>   <tbody>    <TR>        ...    </TR>  </tbody> </Table>

Now let's try to use this 2 tag:

<!DOCTYPE HTML><HTMLLang= "en"><Head>    <MetaCharSet= "UTF-8">    <title>Using Thead and TFOOT tags</title></Head><Body>    <H2>Using Thead and TFOOT tags</H2>    <TableBorder= "1">        <thead>            <TR><TD>Serial number</TD><TD>Items</TD><TD>Price</TD></TR>        <tbody>            <TR><TD>1.</TD><TD>Pencil</TD><TD>¥1.00</TD></TR>            <TR><TD>2.</TD><TD>Brush</TD><TD>¥5.00</TD></TR>            <TR><TD>3.</TD><TD>Pen</TD><TD>¥10.00</TD></TR>        </tbody>        <tfoot>            <TR><TDcolspan= "2">Total:</TD><TD>¥16.00</TD></TR>    </Table></Body></HTML>

What would be the result? can go to the Code Bud Network learning Experience Oh http://www.mayacoder.com

HTML&CSS Basic Learning Note 1.17-the head and tail of the table

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.