HTML <col> Element Reference

The HTML <col> element represents one or more columns within a table column group.

<col>

HTML <col> Element Reference

The HTML <col> element represents one or more columns within a table column group.

Categories

  • Tabular data

Tag omission

This is a void element and does not have an end tag.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical col element example.

<table>
  <colgroup><col class="name"><col class="value"></colgroup>
</table>

Related references

Description

The HTML <col> element represents one or more columns within a table column group.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <col> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies