HTML <tfoot> tag
HTML <tfoot> tag
The <tfoot>
tag specifies a footer content in an HTML table.
Note: The <tfoot>
element is optional and can be used in conjunction with the <thead> and <tbody> elements.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<table>
<thead>
<tr>
<th>Students</th>
<th>Count</th>
</tr>
</thead>
<tbody>
<tr>
<td>Male</td>
<td>28</td>
</tr>
<tr>
<td>Female</td>
<td>30</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Total</td>
<td>58</td>
</tr>
</tfoot>
</table>
</body>
</html>
Attributes
There is no special attributes for <tfoot> tag. Only Global attributes.
Deprecated Attributes
The following attributes should not be used in any case.
Attribute | Value | Explanation |
---|---|---|
align |
| Specifies the horizontal alignment of the <tfoot> section. |
bgcolor |
| Specifies the background color of the <tfoot> section. |
char | character | Specifies a character to align the content inside <tfoot> element. |
charoff | number | Specifies the number of characters to offset the <tfoot> data from the alignment characters specified by the char attribute. |
valign |
| Specifies the vertical alignment of the <tfoot> content. |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.