Search...

HTML Tables

HTML tables allow web developers to arrange data into rows and columns.

Define an HTML Table

A table in HTML consists of table cells inside rows and columns.

Simple HTML Table
Result

Table Cells

Each table cell is defined by a `<td>` and a `</td>` tag. `td` stands for table data.

Table Rows

Each table row starts with a `<tr>` and ends with a `</tr>` tag. `tr` stands for table row.

Table Headers

Sometimes you want your cells to be header cells. In those cases use the `<th>` tag instead of the `<td>` tag. `th` stands for table header.

By default, the text in <th> elements are bold and centered.