A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/HTMLTableElement/caption below:

caption ยท WebPlatform Docs

caption Summary

Gets or sets the caption element of a table.

Property of dom/HTMLTableElementdom/HTMLTableElement

Syntax
var captionElement = table.caption;
table.caption = newCaption;
Return Value

Returns an object of type DOM NodeDOM Node

The caption element, or null.

Examples

This 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 specifications
DOM Level 1
Recommendation
Attributions

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