HTML Table Tags
Tags for Tables in HTML 5
- <table>
- The table element is the main element that creates an HTML table. The other elements are inside the table element.
- <caption>
- The <caption> tag is used to create a table caption in HTML. On screen, a caption will appear above the table as the table title.
- <colgroup>
- A colgroup is a group of one or more columns in a table. It can be used to apply a style to multiple table columns.
- <col>
- The col element represents a vertical column in a table. It can be used to apply a style to a table column which can be used to, for example, set the column width.
- <thead>
- The thead element indicates which table rows belong to the table header.
- <tr>
- The <tr> tag is used for each table row.
- <th>
- The <th> tag is used for a table heading cell.
- <tfoot>
- The thead element indicates which table rows belong to the table footer. For example, the footer can include a total of the numerical values in a column or some other column summary for non-numerical columns.
- <tbody>
- The thead element indicates which table rows belong to the table body.
- <td>
- The <td> tag is used for a table detail cell.
See the tutorial on Creating HTML Tables for full details on how to create an HTML table using the HTML table tags together.