tag, the table tag height will be overridden).
The number of columns that the cell spans.
The number of rows that the cell spans.
The text wrapping feature is disabled.
Now that we have a basic understanding of TABLES, let’s take a look at a simple 2 column table which will be constructed a column at a time. we start with the first column:
| US STATE |
| Alabama |
| Alaska |
| Arizona |
| California |
| Colorado |
Now that we have the first column built, its time to add a second. To build the second column, all you would do is just build on the first.
| US STATE |
AREA CODE |
| Alabama |
205 |
| Alaska |
907 |
| Arizona |
480 |
| California |
209
| Colorado |
303 |
Now that you have learned the basics, let’s see if we can't fine tune your table a little. It’s fairly easy to change the way your table looks on your web page. You can change the size and the color, specify a border size, and add space between the table cells. You determine all of these things by using several different attributes in your TABLE TAG.
(WIDTH, BGCOLOUR, CELLPADDING, CELLSPACING, BORDER)
Use the WIDTH attribute inside the TABLE TAG to specify how much of the screen you want your table to span. You can use a percentage or pixels for the value. BGCOLOUR in a table works the same as the BGCOLOUR attribute in the BODY TAG. Use the colors name or its hexadecimal code. CELLPADDING and CELLSPACING will let a little air into your table and make it easier to view. CELLSPACING is the amount of space you want between your table cells. CELLPADDING is how many pixels of space you want on the inside of your cell between your text and the border. Finally you can also control the thickness of your table border by using the BORDER attribute.
Below is an example of what our previous table would look like with all the attributes we just talked about.
| US STATE |
AREA CODE |
| Alabama |
205 |
| Alaska |
907 |
| Arizona |
480 |
| California |
209 |
| Colorado |
303 |