HTML tag
Example
and the tag set the background color for three columns in a table:
| ISBN | Title | Price |
|---|---|---|
| 3476896 | My first HTML | $53 |
Try it »
Browser support

All major browsers support the tag.
Tag Definition and Usage Notes
The tag specifies the column properties for each column inside the [](tag-colgroup.html) element.By using the tag, you can apply styles to an entire column without having to repeatedly set styles for each cell or each row.
Differences between HTML 4.01 and HTML5
Most attributes from HTML 4.01 are no longer supported in HTML5.
Differences between HTML and XHTML
In HTML, the tag has no closing tag.
In XHTML, the tag must be closed properly.
property
| property | Value | Description |
|---|---|---|
| align | left |
right
center
justify
char | HTML5 does not support。Specifies与 元素相关的内容的水平对齐方式。 |
| char | character | Not supported in HTML5. Specifies which character to use to align content associated with the element. | | charoff | number | Not supported in HTML5. Specifies the offset of the first alignment character. | | span | number | Specifies the number of columns the element should span. | | valign | top
middle
bottom
baseline | Not supported in HTML5. Specifies the vertical alignment of content associated with the element. | | width | %
pixels
relative_length | Not supported in HTML5. Specifies the width of a element