X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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():

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

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



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook