<col>
The <col> tag is optionally used in a <tabular> environment.
Its primary use is to define horizontal alignment within a column or to
specify by percentage how much of the tabular environment the column should
occupy.
If the <col> tag does appear, it must occur prior to any rows and must occur
exactly as many times as there will be columns.
Syntax
Attributes
| Attribute | Required? | Values |
|---|---|---|
halign = "…" | optional | "left""center""right""justify" |
right = "…" | optional | "none""minor""medium""major" |
top = "…" | optional | "none""minor""medium""major" |
width = "…" | optional | string |
Children
This tag must be empty (i.e., no children or text allowed).Parents
This element may appear as an immediate child of the following elements:<tabular>
Notes
The width option will only be applied to columns containing a cell with
a <p>. Conversely, the use of a <p> tag inside a cell necessitates the
use of a <col> preamble to the rows of a <tabular>.