The Web
Designer can also add the ATTRIBUTE of WIDTH to the Table
tag
WIDTH
= some numbe it can be either an exact number in pixels or as
a percentage of the page.
Example
<TABLE
BORDER=2 CELLPADDING=4 CELLSPACING=4 WIDTH=450>
<TR>
<TD>This
is the first Row and first Data Cell of this Table</TD>
<TD>This is the
first Row and second Data Cell of this Table</TD>
</TR>
<TR>
<TD>This is the second Row and third Data
Cell of this Table</TD>
<TD>This
is the second Row and fourth Data Cell of this Table</TD>
</TR>
</TABLE>
This is the
first Row and first Data Cell
of this Table |
This is the
first Row and second Data Cell
of this Table |
This is the
second Row and third Data Cell
of this Table |
This is the
second Row and fourth Data Cell
of this Table |
The
ATTRIBUTE of WIDTH can also be placed in the Table Data Cell <TD>
tag.
<TABLE
BORDER=2 CELLPADDING=4 CELLSPACING=4 WIDTH=450>
<TR>
<TD WIDTH=150>This
is the first Row and first Data Cell
of this Table</TD>
<TD WIDTH=300>This
is the first Row and second Data Cell
of this Table</TD>
</TR>
<TR>
<TD WIDTH=150>This is the second Row
and third Data Cell of this Table</TD>
<TD WIDTH=300>This
is the second Row and fourth Data Cell
of this Table</TD>
</TR>
</TABLE>
This is the first Row and first Data Cell
of this Table |
This
is the first Row and second Data Cell
of this Table |
This
is the second Row and third Data Cell
of this Table |
This
is the second Row and fourth Data Cell
of this Table |
|