HTML Tables
HTML tables allow web developers to arrange data into rows and columns.
Table of Contents
HTML tables allow web developers to arrange data into rows and columns.
Try It — Basic HTML Table
Preview
Table Elements Explained
| Tag | Description |
|---|---|
<table> | Defines a table |
<tr> | Defines a table row |
<th> | Defines a table header cell |
<td> | Defines a table data cell |
Tip: Use the
border-collapse: collapseCSS property to combine table borders into one clean line.