table (HTML4 & HTML5)

Defines an HTML table in a document.

Properties & Events

KeyDescriptionAvailability
backgroundSpecifies the URL for the background image for the document or element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
bgcolorSpecifies the background color for the document or element. Specify either a color name or RGB color.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
borderWidth (in pixels) of the border around the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
cellpaddingNumber of pixels between the content of a cell and the edge of a cell.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
cellspacingNumber of pixels between cells.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
classCSS class assigned to the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
colsNumber of characters wide that the element should be.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
dirDirection of the element text.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
frameSpecifies which edges of the element should have a border.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
heightHeight of the element (in pixels).
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
hspaceNumber of pixels of space to the left and right of the element (i.e. horizontal margin).
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
idUnique identifier for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
langLanguage code for the content of the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
languageScript language for the element.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera ??
rulesSpecifies the dividing rules for the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
styleInline style for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
summarySummary of the contents of the element.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
tabindexPosition of the element in the tabbing order for the document.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
titleShort text description for the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
vspaceNumber of pixels of space above and below the element (i.e. vertical margin).
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 7.0
widthWidth of the element (pixels or percentage).
chrome ??safari 1.0Firefox 1.0ie 1.0opera 1.0
onblurFires when the element loses focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onclickFires when the element is clicked.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
ondblclickFires when the element is double-clicked.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onfocusFires when the element receives focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onkeydownFires when a user presses down on a key while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onkeypressFires when a user presses a key or holds down the key while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onkeyupFires when a user releases a key while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmousedownFires when a user clicks down on the mouse button while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmousemoveFires when the mouse moves while the pointer over the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmouseoutFires when the mouse pointer moves off of the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmouseoverFires when the mouse pointer moves over the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
onmouseupFires when the user releases the mouse button while the element has focus.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0

Examples having uses of: 'table'

2 votes
13k views

JavaScript Keywords list

JavaScript has many keywords some of them are currently in use and some of them are reserved for future use. We can not use the keywords for our general purpose.
5 votes
13k views

HTML Table

Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell.
0 votes
13k views

HTML Table Layout

Table layout styled with CSS attributes and managed by HTML class attribute.
2 votes
8k views

JavaScript Required Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example has a required validation on the input box.
2 votes
4k views

HTML Table Padding

You can increase the space within the table cells and the space between the cells by using the cellpadding and cellspacing attributes. The cellspacing attribute adjusts the space between the cells and cellpadding adjusts the space within (around) the cell.
0 votes
3k views

HTML5 figure

The figure element represents some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document.
1 votes
2k views

HTML Table Rowspan

Table rowspan sets how many rows a cell spans and rowspan extends cells on a vertical row.
1 votes
2k views

JavaScript Numeric Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example validates numeric characters on the input.
0 votes
2k views

HTML Table Alignment

You can create text alignment for the table by using the HTML style attribute and setting CSS attribute "text-align: right"
0 votes
1k views

HTML Table Column

Table cells can span across more than one column or row. The attributes colspan and rowspan indicate how many columns or rows a cell should take up.
0 votes
1k views

HTML Table Header

Header information in a table are defined with the <th> tag. All major browsers display the text in the <th> element as bold and centered.
1 votes
1k views

jQuery Selectors Advanced

The jQuery nth-child is used to select all elements that are ntg-child of of their parent. The nth-child(n) is “1-indexed”, meaning the “n” is counting starts at 1. Because jQuery's implementation of :nth-child(n) is strictly derived from the CSS specification, the value of n is "1-indexed", meaning that the counting starts at 1. For all other selector expressions, however, jQuery follows JavaScript's "0-indexed" counting.
0 votes
1k views

JavaScript Alphabetic Character Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example validates alphabetic characters on the input
0 votes
1k views

HTML Table Width & Height

You can specifying a table height & width by using the attributes with same name. The default values are in pixels.
1 votes
1k views

CSS Border

Using CSS border we can set style, color, width of the borders of an HTML element.
0 votes
1k views

Useful html entities

Reserved characters in HTML must be replaced with character entities and here useful list of character entities.