Site hosted by Angelfire.com: Build your free website today!

HTML Basics: How to Set Up a Table

The only tags you use in a table are:
<TABLE></TABLE>
<TR></TR>
<TD></TD>

Those are the only tags used. Now the way to use them is simple. First of all, you start
with a <TABLE> tag, just to note that you are making a table. The next tag you type
in after that is <TR> (table row).

The table row is how any other table would be set up, you go from left to right.

Finally, you type in the <TD> tag. Whatever is typed between the
<TD></TD> tags is whatever will show up in the table cell.
Example:
<TABLE>
<TR> <TD>AAAA</TD> <TD>BBBB</TD> <TD>CCCC</TD> </TR>
<TR> <TD>DDDD</TD> <TD>EEEE</TD> <TD>FFFF</TD> </TR>
<TR> <TD>GGGG</TD> <TD>HHHH</TD> <TD>IIII</TD> </TR>
</TABLE>

AAAA BBBB CCCC
DDDD EEEE FFFF
GGGG HHHH IIII

Other things you can do to a table is change the border size:
<TABLE BORDER="5"> (Higher the number, bigger the border).

You can also change the color of the cell background by adding bgcolor into the <TD> tag.
<TD BGCOLOR="red"> AAAA </TD>

For an easier description, watch the table below.

AAAA BBBB CCCC
DDDD EEEE FFFF
GGGG HHHH IIII