TableCellElement
The HTMLTableCellElement
interface provides special properties and methods (beyond the regular HTMLElement
interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.
Documentation HTMLTableCellElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Instance Members
colSpan: Int
An unsigned long integer indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table. It reflects the colspan
attribute.
rowSpan: Int
An unsigned long integer indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table. It reflects the rowspan
attribute.
headers: String
Is a DOMSettableTokenList
describing a list of id
of th
elements that represents headers associated with the cell. It reflects the headers
attribute.
cellIndex: Int
A long integer representing the cell's position in the HTMLTableRowElement.cells
collection of the tr
the cell is contained within. If the cell doesn't belong to a tr
, it returns -1
.
abbr: String
A DOMString
which can be used on th
elements (not on td
), specifying an alternative label for the header cell.. This alternate label can be used in other contexts, such as when describing the headers that apply to a data cell. This is used to offer a shorter term for use by screen readers in particular, and is a valuable accessibility tool. Usually the value of abbr
is an abbreviation or acronym, but can be any text that's appropriate contextually.
scope: String
align: String
axis: String
height: String
width: String
ch: String
chOff: String
noWrap: Bool
vAlign: String
bgColor: String