Name
TableCell: cell in an HTML table â DOM Level 2 HTML: Node â Element â HTMLElement â TableCell
Properties
-
readonly long cellIndex
The position of this cell within its row.
In addition to the cellIndex
property, this interface defines
the following properties, which correspond directly to the HTML
attributes of the <td>
and
<th>
elements:
Property |
Attribute |
Description |
|
|
See HTML specification |
|
|
Horizontal alignment of cell |
|
|
See HTML specification |
|
|
Background color of cell |
|
|
Alignment character |
|
|
Alignment character offset |
|
|
Columns spanned by cell |
|
|
|
|
|
Cell height in pixels |
|
|
Donât word-wrap cell |
|
|
Rows spanned by cell |
|
|
Scope of this header cell |
|
|
Vertical alignment of cell |
|
|
Cell width in pixels |
Description
This interface represents <td>
and <th>
elements in HTML tables.
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.