|
<TABLE></TABLE> This element is used to define a table. Tables are used to organize data as well as to provide structure for laying out pages. |
|
|
ATTRIBUTES ALIGN = "CENTER | LEFT | RIGHT" BGCOLOR = "color name | #RRGGBB" BORDER = "pixels" CELLPADDING = "pixels" CELLSPACING = "pixels" CLASS = "class name(s)" FRAME = "ABOVE | BELOW | BORDER | BOX | HSIDES | LHS | RHS | VOID | VSIDES" STYLE = "style information" WIDTH = "percentage | pixels" HEIGHT = "percentage | pixels" BACKGROUND = "URL or image file" BORDERCOLOR = "color name | #RRGGBB" |
EVENTS onclick ondblclick onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup |
ALIGN This attribute specifies the alignment of the table with respect to surrounding text. The HTML 4.0 specification defines CENTER, LEFT, and RIGHT. BGCOLOR This attribute specifies a background color for a table. This value can be either a named color, such as red, or a color specified in the hexadecimal #RRGGBB format, such as #FF0000. BORDER This attribute specifies in pixels the width of a table's borders. A value of 0 makes a borderless table, which is useful for graphic layout. CELLPADDING This attribute sets the width in pixels between the edge of a cell and its contents. CELLSPACING This attribute sets the width in pixels between individual cells. CLASS See Cascading Style Sheets (CSS) Information. FRAME This attribute specifies which edges of a table are to display a border frame. A value of ABOVE indicates only the top edge; BELOW indicates only the bottom edge; and BORDER and BOX indicate all edges, which is the default when the BORDER attribute is a positive integer. A value of HSIDES indicates only the top and bottom edges should be displayed; LHS indicates the left-hand edge should be displayed; RHS indicates the right-hand edge should be displayed; VSIDES indicates the left and right edges should both be displayed; and VOID indicates no border should be displayed. STYLE See Cascading Style Sheets (CSS) information. WIDTH This attribute specifies the width of the table either in pixels or as a percentage value of the enclosing window. HEIGHT This attribute specifies the height of the table in pixels ONLY. BACKGROUND This attribute specifies the URL of a background image for the table. The image is tiled if it is smaller than the table dimensions. (Netscape displays the background image in each table cell, rather than behind the complete table as Internet Explorer does.) BORDERCOLOR This attribute is used to set the border color for a table. The attribute should only be used with a positive value for the BORDER attribute. The value of the attribute can be either a named color, such as green, or a color specified in the hexadecimal #RRGGBB format, such as #00FF00. |
| Back to Top |