colgroup span attribute
The span attribute on the colgroup element:
Examples
<colgroup | attribute | = | "value(s)" | > | ... | Examples | |
---|---|---|---|---|---|---|---|
1. | span | = | integer | <span="2"> ... <⁄ > |
Video demonstration colgroup span attribute
HTML5 colgroup span attribute Tutorial
min | video details |
---|---|
00:05 | video tutorial: colgroup element, span attribute |
00:05 | span attribute on colgroup element allows you to specify the number of columns a colgroup will span, thus giving the number of columns grouped inside a column group: e.g. <colgroup span="3"> means that colgroup will span 3 columns but it also means that inside colgroup there are 3 columns grouped and spanned |
00:12 | we have a table with 4 columns |
00:21 | a table with 4 columns |
00:25 | our table has 2 colgroup elements: by default each colgroup has 1 column, equivalent to : span="1" |
00:32 | let the 1st colgroup element span 3 columns and the 2nd colgroup span 1 |
00:47 | 3 columns in the first colgroup, 1 column in the second colgroup |
01:02 | let the 1st colgroup element span 1 column and the 2nd colgroup span 3 columns |
01:11 | let the 1st colgroup element span 2 columns and the 2nd colgroup span 2 columns |