TABLE - table tag
Description :
The TABLE tag
defines a table. Inside the TABLE tag, use the TR tag to define
rows in the table, use the TH tag to define row or column
headings, and use the TD tag to define table cells.
Syntax
<TABLE ALIGN="left|right|center"
BGCOLOR="color" BORDER="value" CELLPADDING="value"
CELLSPACING="value" HEIGHT="height"
WIDTH="width" COLS="numOfCols" HSPACE="horizMargin"
VSPACE="vertMargin">.... </TABLE>
Attributes
ALIGN specifies the horizontal placement of the
table.
LEFT = aligns the table on the left (the
default). The content following the table flows to the right of
the table.
RIGHT = aligns the table on the right. The
content following the table flows to the left of the table.
CENTER = aligns the table in the center. Content
does not flow on either side.
BGCOLOR = specifies the color of the background
for the table. This color can be overridden by a BGCOLOR tag in
the TH, TR, or TD tags.
BORDER = specifies the thickness, in
pixels, of the border to draw around the table. The value should
be an integer. A value of 0 means the table has no border. You can
also supply the BORDER attribute without specifying a value for it
to indicate that the table has a border of the default thickness.
CELLPADDING = specifies the amount of space, in
pixels, between the border of a cell and the contents of the cell.
The default is 1.
CELLSPACING = determines the amount of space, in
pixels, between individual cells in a table. The default is 2.
HEIGHT = specifies the height of the table. The
default is the optimal height determined by the contents of each
cell. The height value can be a number of pixels, given as an
integer, or a percentage of the height of the page or parent
element. The table is scaled to fit the specified height and
width.
WIDTH = specifies the width of the table. The
default is the optimal width determined by the contents of each
cell. The width value can be a number of pixels, given as an
integer, or a percentage of the width of the page or parent
element. The table is scaled to fit the specified height and
width.
COLS = specifies how many virtual columns
of equal width fit in the width of the window. Each actual column
in the table occupies a virtual column. You would typically set
the COLS attribute to be equal to the number of columns in the
table to indicate that all the columns in the table have the same
width.
HSPACE = specifies the distance between the left
and right edges of the table and any surrounding content.
VSPACE = specifies the distance between the top
and bottom edges of the table and any surrounding content.
|