Gets or sets the caption element of a table.
Property of dom/HTMLTableElementdom/HTMLTableElement
Syntaxvar captionElement = table.caption;
table.caption = newCaption;
Return Value
Returns an object of type DOM NodeDOM Node
The caption element, or null.
ExamplesThis example sets the inline style for the caption property.
document.getElementById("mytable").caption.style.color = "blue";
Notes
If a table contains multiple captions, this property returns the first one.
Related specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4