Tag COL

Description
Tag <COL> specifies the width and other attributes of one or more columns of the table. In the presence of this tag browser begins to show the contents of the table not waiting for its full load. Tag <COL> can be used in conjunction with <COLGROUP> which specifies a group of columns with common parameters.
<table>
<colgroup><col></col>
</colgroup>
<tbody>
<tr>
<td>...</td>
</tr>
</tbody>
</table>
Parameters
Aligndefines the edge alignment of the content of the column.
Spannumber of columns the parameters should be used to.
Valigndefines the vertical alignment of the content of the column.
Widthwidth of columns
Closing tag
Is not optional.
The Description of Tag <COL> Parameters
ALIGN Parameter
Description
Defines the horizontal alignment of the content of the columns. This parameter has an effect on all the cells in the column. The titles of the columns are defined by the tag <TH>. Use the styles or determine ALIGN parameter for separate cells of the table to administrate the alignment of different elements.
Arguments
Left left alignment of the content.
Center center alignment of the content.
Right right alignment of the content.
None cancels the action of this feature
Default value
left.
Analogue CSS
Text-align
SPAN Parameter
Description
Defines the number of columns the fixed parameters will be applied to. In case this attribute is absent, the tag <COL> works for one column. SPAN Parameter can be used for several columns and form the groups of columns with the same characteristics.
Arguments
Positive integral value.
Default value
1
VALIGN Parameter
Description
Defines vertical alignment of the content of the column.
Arguments
Baseline the base line alignment. Browsers don’t support this parameter.
Bottom bottom alignment.
Middle middle alignment.
Top top alignment.
Default value
Middle
MIDTH Parameter
Description
Defines the width of the column.
Arguments
The entire value in pixels or percents is used usually. The alternate way is based on the symbol *, which defines the acceptable width.
Default value
The width is defined on the cell’s content.
Analog CSS
width
Form builder
CSS forms
Form maker
PHP contact form