td (HTML4 & HTML5)

Defines a single cell within a table.

Properties & Events

KeyDescriptionAvailability
abbrAbbreviation for a header cell in a table.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
alignDefines the alignment of the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
axisSpecifies a name for a group of headers.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
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
charSpecifies which character to use to set the alignment for the element.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
charoffNumber of characters to offset the other column characters from the character specified by char.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
classCSS class assigned to the element.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
colspanNumber of columns that the element should span.
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
headersSpace-delimited list of header cell id's for header cells that are related to the element.
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
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 ??
nowrapIf present, specifies that the element text should not wrap.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
rowspanNumber of rows that the element should span.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 4.0
scopeSpecifies cells that the element is a header for.
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
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
valignVertical alignment of the element.
chrome 1.0safari 1.0Firefox 1.0ie 2.0opera 4.0
widthWidth of the element (pixels or percentage).
chrome 1.0safari 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: 'td'

5 votes
14k 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.
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.
2 votes
14k 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.
2 votes
9k 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.
1 votes
1k views

CSS Border

Using CSS border we can set style, color, width of the borders of an HTML element.
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.
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.
1 votes
2k views

HTML Table Rowspan

Table rowspan sets how many rows a cell spans and rowspan extends cells on a vertical row.
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.
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.
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
14k views

HTML Table Layout

Table layout styled with CSS attributes and managed by HTML class attribute.
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.
0 votes
1k views

Useful html entities

Reserved characters in HTML must be replaced with character entities and here useful list of character entities.
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
2k 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.