New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# colgroup

Defines a group of columns within a table.

Example: Copy

John Lennon Rhythm Guitar 1960–1969
Paul McCartney Bass 1960–1970
George Harrison Lead Guitar 1960–1970
Ringo Starr Drums 1960–1970
<table>
  <colgroup>
    <col style="background-color: hotpink;">
    <col span="2" style="background-color: springgreen;">
  </colgroup>
  <tr>
    <td>John Lennon</td>
    <td>Rhythm Guitar</td>
    <td>1960–1969</td>
  </tr>
  <tr>
    <td>Paul McCartney</td>
    <td>Bass</td>
    <td>1960–1970</td>
  </tr>
  <tr>
    <td>George Harrison</td>
    <td>Lead Guitar</td>
    <td>1960–1970</td>
  </tr>
  <tr>
    <td>Ringo Starr</td>
    <td>Drums</td>
    <td>1960–1970</td>
  </tr>
</table>