Tables and Media Details
Colgroup Highlight
Describe Columns Once
A compact status table uses colgroup and col elements so the label and value columns can be treated differently.
Program
Column groups let a table describe columns before rows arrive. That keeps repeated column intent out of individual cells.
colgroup_highlight.html
<table>
<colgroup><col class="label-col"><col class="value-col"></colgroup>
<tr><td>Plan</td><td>Ready</td></tr>
<tr><td>Tests</td><td>Passing</td></tr>
</table>
colgroup
A colgroup wraps one or more column definitions.
col
A col element applies metadata or presentation to a table column.