HTML tables allow web developers to arrange data into rows and columns.
A table in HTML consists of table cells inside rows and columns.
Each table cell is defined by a <td> and a </td> tag.
Everything between <td> and </td> are the content of the table cell.
Each table row starts with a <tr> and end with a </tr> tag.
You can have as many rows as you like in a table, just make sure that the number of cells are the same in each row.
Sometimes you want your cells to be headers, in those cases use the <th> tag instead of the <td> tag.
<tr>
<th>Person 1</th>
<th>Person 2</th>
<th>Person 3</th>
</tr>
<tr>
<td>Emil</td>
<td>Tobias</td>
<td>Linus</td>
</tr>
<tr>
<td>16</td>
<td>14</td>
<td>10</td>
</tr>
</table>
A table in HTML consists of table cells inside rows and columns.
Each table cell is defined by a <td> and a </td> tag.
Everything between <td> and </td> are the content of the table cell.
Each table row starts with a <tr> and end with a </tr> tag.
You can have as many rows as you like in a table, just make sure that the number of cells are the same in each row.
Sometimes you want your cells to be headers, in those cases use the <th> tag instead of the <td> tag.
Example:
<table><tr>
<th>Person 1</th>
<th>Person 2</th>
<th>Person 3</th>
</tr>
<tr>
<td>Emil</td>
<td>Tobias</td>
<td>Linus</td>
</tr>
<tr>
<td>16</td>
<td>14</td>
<td>10</td>
</tr>
</table>