HTML DOM Columngroup object

Columngroup object

A Columngroup object represents a group of columns in an HTML table.

For each <colgroup> tag in the HTML document, a Columngroup object is created.

The <colgroup> tag is useful if you want to apply styles to all columns, so you don't need to repeat styles for individual cells and rows. The <colgroup> tag can only be used within table elements.

Columngroup object attributes

spanSets or returns the value of the span property in the column group.

Standard Properties and Events

Columngroup objects also support standard properties and events .

Related Pages

HTML tutorial: HTML table

HTML reference: HTML <colgroup> Tag

JavaScript reference: HTML DOM Column Object