Tables


Table starts with <TABLE> and ends with </TABLE> tags. <TABLE> tag can have attributes like BORDER. Other important tags are <TH> and </TH> which are used for table heading, <TR> and </TR> for table row and <TD> and </TD> for table data, i.e. data cell.

Example of simple table code:

<TABLE BORDER>
<TR>
<TH>Row 1</TH>
<TD>1st row, col 1</TD>
<TD>1st row, col 2</TD>
<TD>1st row, col 3</TD>
</TR>
<TR>
<TH>Row 2</TH>
<TD>2nd row, col 1</TD>
<TD>2nd row, col 2</TD>
<TD>2nd row, col 3</TD>
</TR>
</TABLE>


and it looks like...

Row 11st row, col 11st row, col 21st row, col 3
Row 22nd row, col 12nd row, col 22nd row, col 3