Tag Description
<tfoot> The HTML <tfoot> tag is used for adding a footer to a table. The <tfoot> tag is used in conjunction with the <thead> and <tbody> tags in determining each part of the table (header, footer, body).

Example:

HTML Code Display

<table width="100%">
    <thead class="portlet-table-header">
        <tr>
            <th colspan="2">
                Table Header (thead)
            </th>
        </tr>
    </thead>
    <tfoot class="portlet-table-footer">
        <tr>
            <td colspan="2">
                Table Footer (tfoot)
            </td>
        </tr>
    </tfoot>
    <tbody class="portlet-table-body">
        <tr>
            <td>Cell 1 - part of tbody</td>
            <td>Cell 2 - part of tbody</td>
        </tr>
        <tr class="portlet-table-alternate">
            <td>Cell 3 - part of tbody</td>
            <td>Cell 4 - part of tbody</td>
        </tr>
        <tr>
            <td>Cell 5 - part of tbody</td>
            <td>Cell 6 - part of tbody</td>
        </tr>
        <tr class="portlet-table-alternate">
            <td>Cell 7 - part of tbody</td>
            <td>Cell 8 - part of tbody</td>
        </tr>        
    </tbody>
</table>
                
Table Header(thead)
Table footer(tfoot)
Cell 1 - part of tbody Cell 2 - part of tbody
Cell 3 - part of tbody Cell 4 - part of tbody
Cell 5 - part of tbody Cell 6 - part of tbody
Cell 5 - part of tbody Cell 6 - part of tbody