HTML and CSS Reference
In-Depth Information
row as the first column group and the next two cells into a second
column group. Any other attributes of the individual <colgroup> tags
then are applied to the columns contained within that group.
10.3.7.2. When to span and col
To use the <colgroup> tag as a container for dissimilar columns, leave
out the span attribute, but include within each <colgroup> tag an in-
dividual <col> tag for each column within the group. For instance, in
HTML:
<colgroup>
<col>
<col>
<col>
<col>
<colgroup>
<col>
<col>
This method creates the same number of columns in each group as we
had with the span attribute, but it lets you specify column attributes indi-
vidually. You can still supply attributes for all the columns via the <col-
group> tag, but the attributes in the <col> tags will override them, as
appropriate.
 
Search WWH ::




Custom Search