The <col> tag defines attribute values for one or more columns in a table.
Supported In HTML4: Yes
Supported In HTML5: Yes
HTML4 vs HTML5 Differences: Most of the attributes from 4.01 are not supported in HTML 5.
Attributes
| Title | Values | Description | HTML4 Support | HTML5 Support |
| align | left, right, center, justify, char | Yes | No | |
| char | character | No | No | |
| charoff | number | No | No | |
| span | number | Defines the number of columns the <col> should span | No | No |
| valign | top, middle, bottom, baseline | No | No | |
| width | %, pixels, relative_length | No | No |
Standard Attributes
All standard attributes are supported.
Event Attributes
All event attributes are supported.
HTML5 Tags
- a
- abbr
- acronym
- address
- applet
- area
- article
- aside
- audio
- b
- base
- basefont
- bdo
- big
- blockquote
- body
- br
- button
- canvas
- caption
- center
- cite
- code
- col
- colgroup
- command
- datalist
- dd
- del
- details
- dfn
- dir
- div