HTML TABLES INDEX

Table Width & Height

The WIDTH= and HEIGHT= attributes are used to customize the size of Tables or Cells.
They are placed within the beginning <TABLE> <TH> or <TD> tags.

Odd Numbers Even Numbers
1 2
3 4
To increase a tables size:
Odd Numbers Even Numbers
1 2
3 4

By typing this:
<TABLE BORDER=1 WIDTH=350 HEIGHT=110>
<TR>
    <TH>Odd Numbers</TH>
    <TH>Even Numbers</TH>
</TR>
<TR>
    <TD>1</TD>
    <TD>2</TD>
</TR>
<TR>
    <TD>3</TD> 
    <TD>4</TD>
</TR>

</TABLE>
Or a single cell size can be changed.

Odd Numbers Even Numbers
The
First
Four
Numbers
1 2
3 4
Like this:
Odd Numbers Even Numbers
The
First
Four
Numbers
1 2
3 4

<TABLE BORDER=1>
<TR>
    <TD></TD>
    <TH>Odd Numbers</TH>
    <TH>Even Numbers</TH>
</TR>
<TR>
    <TH ROWSPAN=2 WIDTH=220>
The<BR>First<BR>Four<BR>Numbers</TH>
    <TD>1</TD>
    <TD>2</TD>
</TR>
<TR>
    <TD>3</TD> 
    <TD>4</TD>
</TR>

</TABLE>

  1. The HEIGHT and WIDTH of a table can be set in pixels or set as a percentage of the user's window.
    i.e. WIDTH or HEIGHT=50% The table will never get small enough not to display all the contents.
  2. A table may also be centered in a browsers window using the <CENTER></CENTER> tag around the table.
BGColor Cellpadding