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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access