HTMLTableCellElement
The interface shared by <td>, <th>. Extends HTMLElement → Element.
Reflected properties
All setters are guarded and throw NoModificationAllowedError on a read-only document.
| Property | Attribute | Type | Notes |
|---|---|---|---|
colSpan |
colspan |
number | unset → 1; clamped to [1, 1000]. |
rowSpan |
rowspan |
number | unset → 1; clamped to [0, 65534]. |
headers |
headers |
string | Reflects the content attribute verbatim. |
scope |
scope |
enum | Keywords: row · col · rowgroup · colgroup. Missing → ""; invalid → "". |
abbr |
abbr |
string | Reflects the content attribute verbatim. |
See also
- Element —
getAttribute/setAttribute, content,classList, traversal, insertion - HTMLElement — the global reflected properties every HTML element inherits
- JavaScript DOM API — the interface hierarchy and
instanceof