HTML: The Markup Language

coltable column # T

The col element represents one or more columns in the column group represented by its colgroup parent.

Permitted content #

empty (void element)

Permitted attributes #

Descriptions for attributes specific to this element #

span = positive integer
Specifies the number of columns “spanned” by its col element; the col element shares its attributes with all the columns it spans.

Additional constraints and admonitions #

Tag omission #

The col element is a void element. A col element must have a start tag but must not have an end tag.

Permitted parent elements #

colgroup

DOM interface #

interface HTMLTableColElement : HTMLElement {
           attribute unsigned long span;
};

Typical default display properties #

col {
display: table-column; }