Schema Documentation - Book Profile
version 1.0

The colgroup element

On this page:

The colgroup element allows a set of properties to be defined for the cells in one or more table columns.

The colgroup can define a common set of properties for one or more columns using the span attribute, in which case it must be an empty element. To specify different properties for different columns, the colgroup must contain one or more col elements with the properties for those columns.

A colgroup must not contain both a span attribute and child col elements.

Usage Example

<table>
   <colgroup>
       <col span="2" class="center" />
       <col class="right" />
   </colgroup>
    <colgroup span="4" class="result" />
   <tr>
       <td>…</td>
       <td>…</td>
       <td>…</td>
       <td>…</td>
       <td>…</td>
       <td>…</td>
       <td>…</td>
   </tr>
</table>
    

Allowed parents

table

Allowed children

This element must not contain text.

This element may contain the following children: col

Content model

a choice of
either @span
or one or more of col
end of choice

Namespace

http://www.daisy.org/ns/z3998/authoring/