<col>


HTML DOM Column object


Column object

A Column object is a column in an HTML table (table).

Column objects can be created in the <col> tag of every HTML document.

The <col> element describes each column attribute in the <colgroup> element.

The <col> tag is useful if you want to apply styles to all columns, so you don't need to repeat styles for individual cells and rows.


Column object attributes

AttributeDescription
spanSets or returns the value of the span property in the column.

Standard Properties and Events

Column objects also support standard properties and events .


Related pages

HTML Tutorial: HTML Tables

HTML Reference Manual: HTML <col> Tag

JavaScript Reference Manual: HTML DOM Columngroup Object