Name
<col> — NN 6 MSIE 3, 4, 5, 5.5, 6 HTML 4.01
Synopsis
<col> (no end tag)
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.
Column groups and columns were introduced by Internet Explorer 3.0 and are now proposed by the HTML 4.01 specification as a standard way to label table structure. They may also be useful in speeding table display (i.e., the columns can be displayed incrementally without waiting for the entire contents of the table).
Attributes
-
align=left|right|center|justify|char Deprecated. Specifies alignment of text in the cells of a column. The default value is
left.
-
char=character Specifies a character along which the cell contents will be aligned when
alignis set tochar. 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 (
char) 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 Deprecated. Specifies ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access