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