Tag Description
<table> The HTML <table> tag is used for defining a table. The table tag contains other tags that define the structure of the table.

Example:

HTML Code Display

<table width="100%">
    <thead class="portlet-table-header">
        <tr>
            <th>Heading 1</th>
            <th>Heading 2</th>
        </tr>  
    </thead>
    <tfoot class="portlet-table-footer">
        <tr>
            <td>Footer 1</td>
            <td>Footer 2</td>
        </tr>
    </tfoot>
    <tbody class="portlet-table-body">
        <tr>
            <td>Row 1 Cell 1</td>
            <td>Row 1 Cell 2</td>
        </tr>
        <tr class="portlet-table-alternate">
            <td>Row 2 Cell 1</td>
            <td>Row 2 Cell 2</td>
        </tr>
        <tr>
            <td>Row 3 Cell 1</td>
            <td>Row 3 Cell 2</td>
        </tr>
        <tr class="portlet-table-alternate">
            <td>Row 4 Cell 1</td>
            <td>Row 4 Cell 2</td>
        </tr>
    </tbody>
</table>
                
Heading 1 Heading 2
Footer 1 Footer 2
Row 1 Cell 1 Row 1 Cell 2
Row 2 Cell 1 Row 2 Cell 2
Row 3 Cell 1 Row 3 Cell 2
Row 4 Cell 1 Row 4 Cell 2