There are a number of tags used in tables, and to fully get to grips with how they work is probably the most difficult area of this HTML Begin
ner Tutorial.
ner Tutorial.
Copy the following code into the body of your document and then we will go through what each tag is doing:
<table>
<tr>
<td>Row 1, cell 1</td>
<td>Row 1, cell 2</td>
<td>Row 1, cell 3</td>
</tr>
<tr>
<td>Row 2, cell 1</td>
<td>Row 2, cell 2</td>
<td>Row 2, cell 3</td>
</tr>
<tr>
<td>Row 3, cell 1</td>
<td>Row 3, cell 2</td>
<td>Row 3, cell 3</td>
</tr>
<tr>
<td>Row 4, cell 1</td>
<td>Row 4, cell 2</td>
<td>Row 4, cell 3</td>
</tr>
</table>
The
table
element defines the table.
The
tr
element defines a table row.