You are here : htmlHTML 5table

<table> - HTML 5

The <table> tag defines an HTML table.

An HTML table consists of the <table> element and one or more <tr>, <td> elements.

The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.

A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.


Syntax

    <table>             <tr>               <th>Month</th>               <th>Savings</th>             </tr>             <tr>               <td>January</td>               <td>$100</td>             </tr>      </table>


Example

    <table>             <tr>               <th>Month</th>               <th>Savings</th>             </tr>             <tr>               <td>January</td>               <td>$100</td>             </tr>      </table>


Output / Return Value


Limitations


Alternatives / See Also


Reference