Tables

Creates a table container.

<table></table>

Defines a table row.

<tr></tr>

Defines a data cell inside a row.

<td>Cell</td>

Defines a header cell, usually bold and centered.

<th>Header</th>

Groups the header part of the table.

<thead>    
    <tr>
        <th>Title</th>
    </tr>
</thead>

Groups the body/content rows.

<tbody>
    <tr>
        <td>Data</td>
    </tr>
</tbody>

Groups the footer rows of the table.

<tfoot>
    <tr>
        <td>Total</td>
    </tr>
</tfoot>

Adds a title/caption to the table.

<caption>Table Title</caption>

Merges columns (horizontally) in a row.

<td colspan="2">Merged cell</td>

Merges rows (vertically) in a column.

<td rowspan="2">Merged cell</td>

Last updated