Home Menu

colgroup

The colgroup HTML element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element.

Syntax

HTML

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

Attributes

Global

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

CSS

colgroup {
    display: table-column-group;
}

Examples

span

CSS

Internal

caption

col

table

tbody

td

tfoot

th

thead

tr

External

Web Hypertext Application Technology Working Group (WHATWG)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms