back

Table Columns

Tag: <col>

The table column tag is placed within the colgroup tag and is used to specify styles and properties for each column in the table.
If every column in the table is the same then it isn't needed and the attributes can be placed in the colgroup tag.
In the example page, the first two columns in the table are styled as red background and the third as blue.
The table column tag is self-closing.

Example