WIDTH attribute can be in pixels or a percentage of the browser width
<TABLE> <CAPTION>Table 1</caption> <TR> <TD WIDTH=100>Cell1</td> <TD WIDTH="25%">Cell2</td> </tr> </table> |
Produces this table |
|
Displaying the BORDER attribute
<TABLE BORDER=0> | <TABLE BORDER=1> | <TABLE BORDER=5> | ||||||
---|---|---|---|---|---|---|---|---|
|
|
|
Displaying the CELLSPACING attribute
<TABLE CELLSPACING=0> | <TABLE CELLSPACING=5> | <TABLE CELLSPACING=20> | ||||||
|
|
|
Displaying the CELLPADDING attribute
<TABLE CELLPADDING=0> | <TABLE CELLPADDING=5> | <TABLE CELLPADDING=20> | ||||||
|
|
|
Getting creative with tables. View source for code.
JANUARY 2000 | ||||||
---|---|---|---|---|---|---|
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1
Vacation *Go swimming
|
Rows x Columns
1x2 Table | 1x3 Table | 1x4 Table | 2x1 Table | 2x2 Table | 2x3 Table |
---|---|---|---|---|---|
<TABLE> |
<TABLE> |
<TABLE> |
<TABLE> |
<TABLE> |
<TABLE> |
3x1 Table | 3x2 Table | 3x3 Table |
---|---|---|
<TABLE> |
<TABLE> |
<TABLE> |