Help Center

Local Navigation

Object: HTMLTableCellElement

Availability

BlackBerry® Device Software version 4.6 or later

Extends

HTMLElement

The HTMLTableCellElement object represents <td> and <th> elements in an HTML document.

The <td> element specifies a cell in a table. The <th> element specifies a table heading cell.

HTMLTableCellElement properties

Property name

Type

Description

Status

Support level

Availability

abbr

DOMString

Specifies an abbreviated version of the cell text.

writable

DOM 2 HTML

4.6 or later

align

DOMString

Specifies the horizontal alignment of the cell data.

writable

DOM 2 HTML

4.6 or later

axis

DOMString

Specifies a list of category names used to organize cell content.

undefined

DOM 2 HTML

4.6 or later

bgColor

DOMString

This property is not currently defined in the DOM HTML specification.

writable

DOM 2 HTML

4.6 or later

cellIndex

int

Returns the index position of the cell in the parent row’s HTMLTableRowElement.cells array.

read only

DOM 2 HTML

4.6 or later

ch

DOMString

Specifies the alignment character for cells in a column.

writable

DOM 2 HTML

4.6 or later

chOff

DOMString

Specifies the distance between the alignment character and the first adjacent character.

writable

DOM 2 HTML

4.6 or later

colSpan

int

Specifies the number of columns the table cell spans.

writable

DOM 2 HTML

4.6 or later

headers

DOMString

Specifies for which sides of the table the border will be visible.

writable

DOM 2 HTML

4.6 or later

height

DOMString

Specifies the height of the table cell.

writable

DOM 2 HTML

4.6 or later

noWrap

boolean

When true, indicates that text is not wrapped in the cell.

writable

DOM 2 HTML

4.6 or later

rowSpan

int

Specifies the number of rows the table cell spans.

writable

DOM 2 HTML

4.6 or later

scope

DOMString

Specifies whether the cell provides header information for the column, column group, row, or row group.

writable

DOM 2 HTML

4.6 or later

vAlign

DOMString

Specifies the vertical alignment of the content within the table cell.

writable

DOM 2 HTML

4.6 or later

width

DOMString

Specifies the width of the table cell.

writable

DOM 2 HTML

4.6 or later


Was this information helpful? Send us your comments.