Table Defaults

Code for this is

Every value has a default setting, and this is true of tables also. But if that is true how come we don't see the table above?
A table has no default height or width. It is expandable according to the data it contains, whether that data is arranged in many cells or one cell, the size of the table can change. Since we have nothing in this table we do not see it. So now we'll give it a size.

Code for this is
<table bgcolor=><td width= "150" height="100"> </td></table>

As you can see when a bgcolor is added but no "value" is assigned to it the default is grey.

Code for this is
<table bgcolor=color><td width= "150" height="100"> </td></table>

When the word color is given as the value the browser picks red. Since red is the first of the primary colors, it is understandable why red is default when the word color is used.

Listed below are defaut values for tables.

table bgcolor=grey
table bgcolor= colorred
td bgcolor=black
td bgcolor=colorred
first cell
left center
subsequent cellsevenly spaced

As we see in the chart below, the basic table defaults change depending on what other attributes are added.

<table width= height= bgcolor=><tr><td></td></tr> </table>
<table width=20 height=20 bgcolor=><tr><td></td></tr> </table>
<table width=20 height=20 bgcolor= color><tr><td></td></tr> </table>
<table width=20 height=20 bgcolor= color><tr><td bgcolor=></td></tr></table>
<table cellpadding= cellspacing= border= bgcolor=color width=20 height=20><tr><td></td></tr></table>
<table cellpadding= cellspacing= border= bgcolor=color> <tr><td bgcolor= height=1 width=1 ></td><td bgcolor=color height=1 width=1 ></td></tr></table>

Back Toots