|
Each table must have three basic tags: <TABLE>, <TR> and <TD>. The <TABLE> tag starts and ends the table. The <TR> starts and ends each row of the table and the <TD> starts each cell of the table.
A simple table would have these tags:
<TABLE>
<TR>
<TD>This is row 1, cell 1.
<TD>This is row 1, cell 2.
</TR>
<TR>
<TD>This is row 2, cell 1.
<TD>This is row 2, cell 2.
</TR>
</TABLE>
and the result would be:
| This is row 1, cell 1.
| This is row 1, cell 1.
|
| This is row 2, cell 1.
| This is row 2, cell 2.
|
By adding the BORDER attribute, to the <TABLE> (in other words, the initial tag will now be <TABLE BORDER="1">), we can see the shape of the table:
| This is row 1, cell 1.
| This is row 1, cell 1.
|
| This is row 2, cell 1.
| This is row 2, cell 2.
|
|