Sign My Guestbook|
View My Guestbook
Tables -- The Basics
This is is section 1 of the Tables leson. It will cover all you'll need to know about making tables.
A Look at a TableThe format of a table has this code:
And the table would look like this.
Notice that the "table" doesn't look like a table. A regular table would have rows and columns, and particularly a border. Let's make a border now by adding the BORDER attribute to the TABLE tag.
The table now looks more like a table. Now it's time to add some columns and rows.
Table Rows and Columns
To make rows, use the TR tag. TR stands for table row. The example below is a table with five rows. Notice there are TD tags between the table rows. We'll explain those later. Also, make sure to place the TR and TD tags within the TABLE tags. They won't work anywhere else.
Now we'll add some columns. This example makes a table with 5 rows and 2 cells in each row. Note that you should put an equal number of TD tags for each row.
That's all the basics for tables in this lesson. Remember that you can put in any HTML you want, including tables, within a table cell.