web api instance property
HTMLTableElement: caption property
The HTMLTableElement.caption property represents the
table caption. If no caption element is associated with the table, this property is
null.
Value
A string.
Examples
if (table.caption) {
// Do something with the caption
}
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The interface implementing this property:
HTMLTableElement.