THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Column Object


Column Object

The Column object represents an HTML <col> element.

Access a Column Object

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

Example

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

Create a Column Object

You can create a <col> element by using the document.createElement() method:

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

Column Object Properties

Property Description
span Sets or returns the value of the span attribute of a column

Standard Properties and Events

The Column object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML tables

HTML reference: HTML <col> tag

JavaScript reference: HTML DOM Columngroup Object