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

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>
    </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