Name

col — <col />

Specifies properties for a column (or group of columns) within a column group (colgroup ). Columns can share attributes (such as text alignment) without being part of a formal structural grouping.

Attributes

Core,Internationalization, Events

align="left|right|center|justify|char"

Specifies the horizontal alignment of text in a cell or cells. The default value is left . The align attribute as it applies to table cell content has not been deprecated and appears in the Tables Module of the XHTML 1.1 Recommendation.

char="character"

Specifies a character along which the cell contents will be aligned when align is set to char . The default character is a decimal point (language-appropriate). This attribute is generally not supported by current browsers.

charoff="length"

Specifies the offset distance to the first alignment character on each line. If a line doesn’t use an alignment character, it should be horizontally shifted to end at the alignment position. This attribute is generally not supported by current browsers.

span="number"

Specifies the number of columns “spanned” by the col element. The default value is 1. All columns indicated in the span are formatted according to the attribute settings in col.

valign="top|middle|bottom|baseline"

Specifies the vertical alignment of text in the cells of a column. The valign attribute as it applies to table cell content has not been deprecated and appears in the Tables Module of the XHTML 1.1 Recommendation.

width="pixels, percentage, ...

Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.