Name
colgroup
Synopsis
<colgroup>...</colgroup>
Creates a column group: a structural division within a table. A
table may include more than one column group. The number of columns in
a group is specified either by the value of the span
attribute or by a tally of columns
(col
) within the group.
Column groups may be useful in speeding table display (for
example, the columns can be displayed incrementally without waiting
for the entire contents of the table) and provide a system for display
on nonvisual display agents such as speech- and Braille-based
browsers. The colgroup
element must appear before
any row (tr
) or rowgroup (thead
,
tbody
, tfoot
) element within the
table
element.
Attributes
Core(id
,
class
, style
, title
),
Internationalization,
Events, Alignment
attributes: align
,
char
, charoff
,
valign
(see tbody
entry for
descriptions)
-
span="
number
"
Specifies the number of columns in a column group. If
span
is not specified, the default is 1.-
width="
pixels, percentage, n
*"
Specifies a default width for each column in the current column group. Width can be measured in pixels, percentages, or defined as a relative size (
*
).0*
sets the column width at the minimum necessary to hold the column’s contents.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.