The <tfoot> Tag in HTML 5
The <tfoot> tag is used to create a table footer in HTML. For example, the footer can include a total of the numerical values in a column or some other column summary for non-numerical columns. When the table spans multiple pages, such as when a large table on a web page is printed, the table footer code within the tfoot element will appear on each page below the table body.
Multiple Column Heading | ||
---|---|---|
First Column Heading | Second Column Heading | |
→This is an example of an HTML table footer.← | ||
Row 1 | Row 1 Column 1 | Row 1 Column 2 |
Row 2 | Row 2 Column 1 | Row 2 Column 2 |
This is an actual working demo of the table footer example code below. (Do View Source to verify that this page is using the HTML 5 DOCTYPE. You can also verify it is Valid HTML 5 using the HTML Validator. Try using it to validate URLs with HTML examples from other places that claim to be HTML 5 web sites!)
See the tutorial on Creating HTML Tables for full details on how to create an HTML table using the HTML table tags together.