HTML DOM ColumngroupObject


Columngroup Object

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

In an HTML document, each <colgroup> tag creates a Columngroup object.

If you need to apply styles to all columns, the <colgroup> tag is useful, so you don't need to repeat styles for each cell and row. The <colgroup> tag can only be used within a table element.


Columngroup Object Properties

Property Description
span Sets or returns the value of the span attribute in the column group.

Standard Properties and Events

The Columngroup object also supports standardpropertiesandevents。


Related Pages

HTML tutorial: HTML Table

HTML reference: HTML <colgroup> Tag

JavaScript reference: HTML DOM Column Object

Other Extensions