HTML <col> Tag


The <col> HTML element sets the width and other characteristics of one or more columns of a table. With this element, the browser starts showing the contents of the table, without waiting for it to fully load. <col> can be used in conjunction with the <colgroup> element, which defines a group of columns that share common characteristics.


Permitted Parents
<colgroup> only, though it can be implicitly defined as its start tag is not mandatory. The <colgroup> must not have a span attribute.
None. It is an empty element.
Start/End Tags
Start tag: required, End tag: forbidden


<table border="1">
<colgroup span="2" style="background-color: #DFF0D8;"></colgroup>
<col span="1" style="background-color: lightblue;">
<th>Population (in millions)</th>
<td>Washington D.C.</td>


Attribute Definition
span Specifies how many columns to span.

Global Attributes

The <col> tag also supports the Global Attributes in HTML5

Event Attributes

The <col> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <col> tag.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 30th March 2024