View video tutorial

HTML <tfoot> Tag

HTML

The <tfoot> tag is used to group the footer content of a table.

HTML <tfoot> Tag


➔ The <tfoot> element defines a set of summaries of table columns.

➔ The <tfoot> element must be placed after any <caption>, <colgroup>, <thead>, <tbody>, or <tr> element in the HTML table.

➔ The <tfoot> element does not affect the layout of the table but is useful for applying CSS.

➔ The <tfoot> element must contain one or more <tr> elements.

Supported Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Example

<tfoot>
    <tr>
        <td colspan="3"> Total Salary</td>
        <td>$44008</td>
    </tr>
</tfoot>
Try it Now »

Click on the "Try it Now" button to see how it works.