col span attribute
The span attribute on the col element:
Examples
<col | attribute | = | "value(s)" | > | Examples | ||
---|---|---|---|---|---|---|---|
1. | span | = | positive integer | <span="3"> |
Video demonstration col span attribute
HTML5 col span attribute Tutorial
min | video details |
---|---|
00:06 | span attribute applied on the col element indicates the number of columns the col element will span |
00:16 | the first colgroup element has 3 col elements = 3 columns |
00:22 | if we want to apply the same style to all 3 columns, instead of adding the same class on each col element, like this: |
00:43 | we can span the 3 columns using the span attribute |
00:58 | same result, less markup |
01:17 | span attribute on the col element allows col element to span columns the same style can be applied to each spanned column |