Table Widths
The width attribute to the <table> tag defines how wide the table
will be on the page. width can have a value that is either the exact
width of table (in pixels) or a percentage (such as 50% or 75%) of the current
screen width, which can therefore change if the window is resized.
Column Widths
The width attribute can also be used on individual cells (<th> or <td>)
to indicate the width of individual columns.
Border Widths
You can change the width of the border drawn around the table. The default
is border=1; border=0 supress the border.
Cell Spacing
Cell Spacing is similar to cell padding except that it affects the amount of
space between cells-that is, the width of the shaded lines that seperate the
cells. The cellspacing attribute in the <table> tag affects the spacing
for the table. cellspacing is 2 by default.
Cell Padding
Cell padding is the amount of apace between the edges of the cells and the cell's
contents.
<table border=4 cellspacing=2 cellpadding=2>
|
Colors in the Tables
To change a background color of a table, a row, or a cell inside a row, use the
bgcolor attribute to the <table>, <tr>, <td>, or <th> tags.
Just like in <body>.