The TABLE element specifies that the contained content is organized into a table with rows and columns. Use the TR, TD, and TH elements in the container to create the rows, columns, and cells. The TABLE element provides the following attributes and events.
Item |
Description |
align |
Specifies the horizontal alignment of its element with respect to the surrounding context. Possible values are left, right, center, and justify. |
bgcolor |
Sets the background color for the table cells. |
border |
Specifies the width (in pixels only) of the frame around a table. |
cellpadding |
Specifies the amount of space between the border of the cell and its contents. If the value of this attribute is a pixel length, all four margins should be this distance from the contents. If the value of the attribute is a percentage length, the top and bottom margins should be equally separated from the content based on a percentage of the available vertical space, and the left and right margins should be equally separated from the content based on a percentage of the available horizontal space. |
cellspacing |
Specifies how much space the user agent should leave between the left side of the table and the left-hand side of the leftmost column, the top of the table and the top side of the topmost row, and so on for the right and bottom of the table. |
class |
Assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters. |
datapagesize |
Specifies the number of records displayed in a table bound to a data source. |
dir |
Specifies the direction of directionally neutral text in an element's content and attribute values: ltr indicates left-to-right text or table. rtl indicates right-to-left text or table. |
frame |
|
id |
Assigns a name to an element. This name must be unique in a document. |
lang |
Specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown. |
onclick |
The onclick event occurs when the pointing device button is clicked over an element. |
ondblclick |
The ondblclick event occurs when the pointing device button is double clicked over an element. |
onkeydown |
The onkeydown event occurs when a key is pressed down over an element. |
onkeypress |
The onkeypress event occurs when a key is pressed and released over an element. |
onkeyup |
The onkeyup event occurs when a key is released over an element. This attribute may be used with most elements. |
onmousedown |
The onmousedown event occurs when the pointing device button is pressed over an element. |
onmousemove |
The onmousemove event occurs when the pointing device is moved while it is over an element. |
onmouseout |
The onmouseout event occurs when the pointing device is moved away from an element. |
onmouseover |
The onmousemove event occurs when the pointing device is moved while it is over an element. |
onmouseup |
The onmouseup event occurs when the pointing device button is released over an element. |
rules |
Specifies which rules will appear between cells within a table. The rendering of rules is user agent dependent. Possible values: none No rules. This is the default value. groups Rules will appear between row groups and column groups only. rows Rules will appear between rows only. cols Rules will appear between columns only. all Rules will appear between all rows and columns. |
style |
Specifies style information for the current element. The syntax of the value of the style attribute is determined by the default style sheet language. |
title |
Specifies advisory information about the element for which it is set. |
width |
Specifies the desired width of the entire table and is intended for visual user agents. When the value is a percentage value, the value is relative to the user agent's available horizontal space. In the absence of any width specification, table width is determined by the user agent. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|