Table Attributes


Attributes for <TABLE>

%coreattrs %il8n %events

ALIGN=

The align attribute controls the alignment of the table. When aligned to the left or the right, many browsers wrap the following text between the table and the opposite margin. To stop the text from wrapping, use the <BR> tag with the CLEAR attribute.

BGCOLOR=

This attribute changes the background color of the table. It is entered as a hexadecimal triplet with a # before the number. The first two digits represent red, the second two, green, and the last two represent blue. This is an RBG Triplet.
These numbers are usually represented as decimal numbers, but when using hexadecimal triplets, you must express their values in hexadecimal form. This means that you use sixteen different numerals (0-F) and that a one in the tens place now represents sixteen. Some calculators convert between these two number systems. When using calculators, be careful to return the settings to decimal numbers before entering the number. Examples of RBG triplets: #FFFFFF (white) #000000 (black), #0000FF (blue).
More about RBG Triplets
at BigNoseBird.Com (Also has a chart)

BORDER=

This attribute tells the browser that the table should have a border and sets the border's width in pixels. Omitting the attribute or setting the border to 0 tells the browser not to display a border.

CELLSPACING=

This attribute controls the amount of space between individual cells in the table. The spacing is basically the rules dividing the cells.

CELLPADDING=
This attribute controls the spacing between the edge of the cell and its contents.

FRAME=

This attribute tells the browser which sides of the border to display. This attribute is not supported by many browsers because it is a new attribute to HTML.

RULES=

This attribute tells the browser which rules to display. It is one of the newer attributes and is not supported by many browsers.

SUMMARY=

This attribute provides information about the table for non-visual browsers. The information will not show up on visual browsers.

WIDTH=

This attribute tells the browser how wide to make the table. It can be specified in pixels, or as a percentage of the screen's width.

Back to the <TABLE> tag


Attributes for <TR>

%coreattrs %il8n %events

ALIGN=

This attribute controls the horizontal alignment of the contents of the row's cells.

BGCOLOR=

This attribute changes the background color of the cells in the row to the specified color. It is entered as a hexadecimal triplet with a # before the number. The first two digits represent red, the second two, green, and the last two represent blue. This is an RBG Triplet.
These numbers are usually represented as decimal numbers, but when using hexadecimal triplets, you must express their values in hexadecimal form. This means that you use sixteen different numerals (0-F) and that a one in the tens place now represents sixteen. Some calculators convert between these two number systems. When using calculators, be careful to return the settings to decimal numbers before entering the number. Examples of RBG triplets: #FFFFFF (white) #000000 (black), #0000FF (blue).
More about RBG Triplets
at BigNoseBird.Com (Also has a chart)

CHAR=

This attribute sets the character on which the row's cell contents align if the ALIGN attribute is set to "CHAR".

CHAROFF=

This attribute sets the position of the alignment character set by the CHAR attribute in relation to the cell. By pixel, it sets the character by the specified number of pixels from the left edge of the cell, unless the DIR attribute has been set to RTL. The same goes for the percentage. 50% centers the character.

VALIGN=

This attribute controls the vertical alignment of the contents of the cells in the row. Overrides <COLGROUP> and <COL> settings.

Back to the <TR> tag


Attributes for <TH> and <TD>

%coreattrs %il8n %events

ALIGN=

This attribute controls the horizontal alignment of the contents of the cell, and overrides all other settings.

BGCOLOR=

This attribute changes the background color of the cell to the specified color. It is entered as a hexadecimal triplet with a # before the number. The first two digits represent red, the second two, green, and the last two represent blue. This is an RBG Triplet.
These numbers are usually represented as decimal numbers, but when using hexadecimal triplets, you must express their values in hexadecimal form. This means that you use sixteen different numerals (0-F) and that a one in the tens place now represents sixteen. Some calculators convert between these two number systems. When using calculators, be careful to return the settings to decimal numbers before entering the number. Examples of RBG triplets: #FFFFFF (white) #000000 (black), #0000FF (blue).
More about RBG Triplets
at BigNoseBird.Com (Also has a chart)

CHAR=

This attribute sets the character on which the cell's contents align if the ALIGN attribute is set to "CHAR".

CHAROFF=

This attribute sets the position of the alignment character (set by the CHAR attribute) in relation to the cell. By pixel, it sets the character by the specified number of pixels from the left edge of the cell, unless the DIR attribute has been set to RTL. The same goes for the percentage. 50% centers the character.

COLSPAN=

This attribute tells how many columns the cell will span. Example: If I put COLSPAN=2, then the cell will appear not only in the column it would otherwise appear in, but also in the next column as well, thus spanning both columns. The next cell I define with the <TD> tag will be moved over one column to make room for this cell. Please see my Sample Table

ROWSPAN=

This attribute tells the browser how many rows the cell will span. For instance, if I put ROWSPAN=3, then this cell (whom we will call A1) will span three rows. It will appear in the row it was originally defined in, and extending through the next two rows. The next two table rows (defined by the <TR> tag) will not contain markup for the cell that should appear in that column, because the space is taken up by cell A1. Therefore, if there are three columns in my table, the next two rows would only contain markup for two cells. See Sample Table

VALIGN=

This attribute controls the vertical alignment of the contents of the cell. Overrides all other settings.

The HTML 4.0 specification also includes the ABBR, AXIS, HEADERS, and SCOPE attributes to fully catagorize table cells. To learn more about this, check out HTML 4.0 Tables

Back to <TH> and <TD>


Attributes for <CAPTION>

%coreattrs %il8n %events

ALIGN=

This attribute controls the alignment of the table's caption.

Back to <CAPTION>


Fantasia
Fantasia___@yahoo.com (That's Fantasia___@yahoo.com with three _'s. "_~)