<tfoot> tag in HTML
The <tfoot> (table footer) tag is used to group footer content of an HTML table. The <tfoot> element can contain information about the columns of the table.
Important Description
- The <tfoot> element must have contain one or more <tr> elements.
- Open tag is required BUT close tag of <tfoot> optional.
- The <tfoot> element will not affect the layout of the table by default.
Example of <tfoot> tag
Result Look Like
Month |
Salary |
Monthly_Saving |
January |
$1000 |
$200 |
February |
$1000 |
$200 |
March |
$1000 |
$200 |
Total_Salary |
$3000 |
$600 |
<tfoot> Tag Browser Support
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<tfoot> |
Yes |
Yes |
Yes |
Yes |
Yes |
Global Attributes
Event Attributes
Attributes
The "align", "charoff", and "valign" attributes are not supported in HTML5:
Attribute |
Value |
Description |
align |
right
left
center
justify
char |
Align attribute specifies the content inside the <tfoot> element |
charoff |
number |
Charoff attribute Sets the number of characters the content inside the <tfoot> element |
valign |
top
middle
bottom
baseline |
Valign attribute define the content aligns inside the <tfoot> element |