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 contents #

empty (void element)

Permitted attributes #

global attributes
Any attributes permitted globally.
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 #


DOM interface #

interface HTMLTableColElement : HTMLElement {
           attribute unsigned long span;

Typical default display properties #

col {
display: table-column; }