| TABLE |
|
| The TABLE command constitutes the container for a table. Tags such as CAPTION, TD, TH AND TR are placed within the opening and closing TABLE statements. For example: |
|
| <TABLE BORDER="3">
<TR>
<TD>
-- Optional text may be placed here --
<IMG SRC="IMAGE.JPG" BORDER="1">
-- Optional text may be placed here --
</TD>
</TR>
</TABLE> |
|
| TABLE Attributes: |
|
| ALIGN="LEFT, RIGHT, or CENTER" |
| This attribute defines whether the entire table will be positioned flush with the right (ALIGN="RIGHT) or left (ALIGN="LEFT") side of the document or existing item. The ALIGN="CENTER" attribute will place the table equidistant from the left and right sides of the document or existing item. |
|
| BACKGROUND="URL" |
| This attribute allows the absolute or relative location (URL) of a background image to be specified. |
|
| BGCOLOR="#RRGGBB" or a color in quotes, such as "RED", "BLUE" or "YELLOW" |
| This attribute sets the color of the element to which it was invoked, this case being the background color of the table. It can be applied to anything that can be colored, such as text, borders, or backgrounds. The color can be defined using a proper color name such as "RED" or with an #RGB (Red-Green-Blue) value. |
|
| BORDER="n" |
| This attribute is used to define the thickness, measured in pixels, of the borner of the table. |
|
| BORDERCOLOR="#RRGGBB" or a color inqoutes, such as "RED", "BLUE" or "YELLOW" |
| This attribute sets the color of the element to which it was invoked, this case being the bordercolor of the table. It can be applied to anything that can be colored, such as text, borders, or backgrounds. The color can be defined using a proper color name such as "RED" or with an #RGB (Red-Green-Blue) value. |
|
| BORDERCOLORDARK="#RRGGBB" or color in quotes, such as "RED, "BLUE" or "YELLOW" |
| This attribute sets the color of the element to which it was invoked, this case being the darker of the two colors used to create the raised '3D' effect of the border around the cells of the table. It can be applied to anything that can be colored, such as text, borders, or backgrounds. The color can be defined using a proper color name such as "RED" or with an #RGB (Red-Green-Blue) value. |
|
| BORDERCOLORLIGHT="#RRGGBB" or a color in quotes, such as "RED", "BLUE" or "YELLOW" |
| This attribute sets the color of the element to which it was invoked, this case being the lighter of the two colors used to create the raised '3D' effect of the border around the cells of the table. It can be applied to anything that can be colored, such as text, borders, or backgrounds. The color can be defined using a proper color name such as "RED" or with an #RGB (Red-Green-Blue) value. |
|
| CELLPADDING="n" |
| This attribute defines the space, measured in pixels between the cell content and the cell wall. |
|
| CELLSPACING="n" |
| This attribute is used to define the space, measured in pixels, between individual cells. |
|
| CLASS=" ... " |
| This attribute indicates the style 'class' applicable to the tag to which it has been assigned, the style 'class' being a function of a style sheet. For example, assume the style class 'relaxed' includes text with a font size of 8, and the style class 'active' includes text with a font size of 12. Using the CLASS="relaxed" attribute with a tag will cause the text within that tag to be displayed with a font size of 8. Using the CLASS="active" attribute with a tag will cause the text within that tag to be displayed with a font size of 12. |
|
| COLS="n" |
| This attribute defines the number of columns to be used within the table. |
|
| FRAME="VOID, BORDER, ABOVE, BELOW, HSIDES, VSIDES, LHS, RHS, or BOX" |
| This attribute defines the appearance of the border lines around the table. FRAME="VOID" will not display border lines. FRAME="BOX" or "BORDER" is the default, and indicates border lines around the entire table. FRAME="ABOVE" will put a line along the top edge. FRAME="BELOW" will draw a line on the botom edge. FRAME="HSIDES" will draw a line on the top and bottom edges. FRAME="LHS" will draw a line on the left hand side. FRAME="RHS" will draw a line on the right hand side. FRAME="VSIDES" will draw lines will draw lines along the right and left edges. |
|
| ID="n" |
| The ID attribute is used to assign a unique ID selector (identification) to the tag in which it is invoked. A style may be assigned to that ID, which will effect only that one instance of the attribute. |
|
| RULES="NONE, ROWS, COLS, GROUPS, or ALL" |
| This attribute will define where lines appear inside the table. RULES="NONE" won't draw anything. RULES="ROWS" will put lines between rows. RULES="COLS" will put lines between columns. RULES="ALL" will draw lines in all possible ways. RULES="GROUPS" will draw lines between the areas specified by the TFOOT, THEAD, TBODY, and COLGROUP tags. |
|
| STYLE=" ... " |
| Used to specify which style sheet commands to apply to the instance of the STYLE attribute invoked within the tag. |
|
| TITLE=" ... " |
| The TITLE attribute is used to display a note or information in a popup window pertaining to the object to which it was assigned. The popup window is invoked by holding the mouse pointer over the object. |
|
| WIDTH="n" |
| This attribute defines the width, measured in pixels, of the table. |
|
This tag also accepts the following Event Handlers:
onAfterUpdate
onBeforeUpdate
onBlur
onClick
onDblClick
onDragStart
onFocus
onHelp
onMouseDown
onMouseUp
onMouseOver
onMouseMove
onMouseOut
onKeyPress
onKeyDown
onKeyUp
onResize
onRowEnter
onRowExit
onScroll
onSelect
onSelectStart |