col

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

Syntax

HTML

<col attribute-name="attribute-value"></col>

Attributes

Global

Name Value Description
span positive integer Number of columns in the group

CSS

col {
    display: table-column;
}

Examples

span

CSS

Internal

caption

colgroup

table

tbody

td

tfoot

th

thead

tr

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu