<col>

TablesSelf-closing

Specifies column properties for each column within a colgroup element.

Common Attributes

span

Example

<colgroup>
  <col style="width: 200px">
  <col style="width: 100px">
</colgroup>

About the <col> Element

The <col> HTML element belongs to the Tables category of HTML elements. Specifies column properties for each column within a colgroup element. Understanding when and how to use this element is essential for building well-structured, accessible, and SEO-friendly web pages.

As a void (self-closing) element, <col> does not have a closing tag. It is written as <col> or <col /> in XHTML syntax. This element is part of the current HTML Living Standard and is supported in all modern browsers including Chrome, Firefox, Safari, and Edge.

Proper use of semantic HTML elements like <col> improves document structure, helps screen readers interpret content correctly, and provides signals to search engines about the purpose of different sections of your page. This leads to better accessibility scores, improved SEO rankings, and more maintainable code.

Related Elements