< All the HTML Tags >

<col></col>

Video Coming Soon...

  • col

    Tag Type

    block

    Tag Category

    tables

    Defines column properties for an HTML table

    Viewed

    1

    Examples

    1

Definition:

The HTML <col> tag is used to specify column properties for an HTML table, allowing for styling and formatting of specific columns.

This tag must be placed within a <colgroup> element and can include attributes like span, style, and class to control the appearance of the column. It aids in defining widths, backgrounds, and borders for entire columns.

Utilizing the `<col>` tag effectively enhances the presentation and usability of tabular data, making it easier to read and comprehend.

Attributes:

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

Accessibility:

Coming Soon…

Default col Example:

Using the <col> tag to set column properties.
<col span="2">

Default col Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…