This element can be used to specify column based values for the table properties.
<COL
ALIGN=CENTER | LEFT | RIGHT
VALIGN=BASELINE | BOTTOM | MIDDLE | TOP
WIDTH=n
CLASS=Style Sheet class name
ID=value
SPAN=n
STYLE=styling
TITLE=text content
>
Parameter |
Description |
||||||
ALIGN |
This sets the text alignment within the column group. The value are : CENTER, LEFT, RIGHT |
||||||
VALIGN |
Displays the elements aligned at the top or bottom within the element. BASELINE Vertical align to the baseline of the font.
|
||||||
WIDTH |
Sets the initial column width for the column(s) that the <col> element covers. This attribute may be initially set in pixels or percentages. |
||||||
CLASS |
Class of the tag being defined. This is used to associate a subclassed style sheet with the tag. |
||||||
ID |
SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. |
||||||
SPAN |
Specifies how many columns are in the group. |
||||||
STYLE |
Inline style sheet for the tag. |
||||||
TITLE |
The TITLE attribute is for advisory information (unless used with a mailto: attribute). The Title attribute should provide the title of the document whose address is given by the HREF attribute. The contents of the title attribute will be displayed in a tooltip during the mouse moves on the link. Internet Explorer 4.0 (and above) is the only browser to implement this. |
<TABLE width="400" cellspacing="0" border="1" cellpadding="0">
<COLGROUP> <COL ALIGN=RIGHT> <COL ALIGN=LEFT> <COL ALIGN=CENTER>
<TBODY>
<TR>
<TD>The first column is right-aligned.</TD>
<TD>The second column is left-aligned.</TD>
<TD>The third colunm is centered.</TD>
</TR></TABLE>
It will be rendered as:
The first column is right-aligned. |
The second column is left-aligned. |
The third column is centered. |
This element is a block element.