< All the HTML Tags >

<colgroup></colgroup>

Video Coming Soon...

  • colgroup

    Tag Type

    block

    Tag Category

    tables

    Defines a group of columns in a table

    Viewed

    1

    Examples

    1

Definition:

The HTML <colgroup> tag is used to group one or more <col> elements within a table, enabling shared styling and properties for the grouped columns.

Attributes like span can define the number of columns included in the group, while styling can be applied to the entire group for consistency in appearance.

The `<colgroup>` tag enhances the semantic structure of tables and simplifies the management of styles across multiple columns.

Attributes:

span, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default colgroup Example:

Using the <colgroup> tag to group columns.
<colgroup><col span="2"></colgroup>

Default colgroup Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…