FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

HTML DOM ColumnGroup Object


ColumnGroup Object

The ColumnGroup object represents an HTML <colgroup> element.

Access a ColumnGroup Object

You can access a <colgroup> element by using getElementById():

Example

var x = document.getElementById("myColgroup");
Try it Yourself »

Create a ColumnGroup Object

var x = document.createElement("COLGROUP");

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 the standard properties and events.


Related Pages

HTML tutorial: HTML tables

HTML reference: HTML <colgroup> tag

JavaScript reference: HTML DOM Column Object