Skip to main content


Table Tag




Core Attributes

Attribute Description Value
CLASS Space-separated list of classes. A string.
ID Unique identifier. A string.
STYLE Associated style info. A string.
TITLE Advisory title. A string.

Event Attributes

Attribute Description Value
ONCLICK A pointer button was clicked. JavaScript code.
ONDBLCLICK A pointer button was double clicked. JavaScript code.
ONKEYDOWN A key was pressed down. JavaScript code.
ONKEYPRESS A key was pressed and released. JavaScript code.
ONKEYUP A key was released. JavaScript code.
ONMOUSEDOWN A pointer button was pressed down. JavaScript code.
ONMOUSEMOVE A pointer was moved within. JavaScript code.
ONMOUSEOUT A pointer was moved away. JavaScript code.
ONMOUSEOVER A pointer was moved onto. JavaScript code.
ONMOUSEUP A pointer button was released. JavaScript code.

General Attributes

Attribute Description Value
ALIGN Table position relative to window “left”, “center”, or “right”.
BGCOLOR Background color for cells An HTML color value.
BORDER Controls frame width around table A numeric value.
CELLPADDING Spacing within cells A numeric value.
CELLSPACING Spacing between cells A numeric value.
FRAME Which parts of frame to render A string.
RULES Rulings between rows and cols A string.
SUMMARY Purpose/structure for speech output A string.
WIDTH Table width A numeric value.

Lang Attributes

Attribute Description Value
DIR Direction for weak/neutral text. “ltr”, or “rtl”.
LANG Language code. A string.


Table Tag

FeedbackOpens in a new tab