Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Columngroup Object

HTML DOM Columngroup Object


Columngroup Object

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

In an HTML document, a Columngroup object is created for each corresponding tag.

To apply styles to all columns at once, the tag is useful, so you do not have to repeat the style for each cell and row. The tag can only be used inside a table element.


Columngroup Object Properties

property Description
span Sets or returns the value of the span attribute of a column group.

Standard properties and events

The Columngroup object also supports standard property and Events.


Related Pages

HTML tutorial: HTML Tables

HTML reference: HTML Tag

JavaScript reference: HTML DOM Column Object