<COLGROUP> Tag & its Attribute
HTML Tag <COLGROUP>
<COLGROUP> Specifies characteristics for a group of table columns.
Attribute of <COLGROUP> Tag
ALIGN
Specifies how text within the table columns lines up with the edges of the table cells, or if ALIGN=CHAR, on a specific character (the decimal point).
<COLGROUP ALIGN="CENTER">
Possible Values
LEFT, RIGHT, CENTER, JUSTIFY, CHAR
CHAR
Specifies the character on which cell contents align, if ALIGN="CHAR". If you omit CHAR=, the default value is the decimal point in the specified language.
<COLGROUP ALIGN="CHAR" CHAR=",">
Possible Values
Any Character.
CHAROFF
Specifies the number of characters from the left at which the alignment character appears.
<COLGROUP ALIGN="CHAR" CHAR=","
CHAROFF="7">
Possible Values
Any Positive Integer.
ID
Assigns a unique ID selector to an instance of the tag. When you then assign a style to that ID selector, it affects only that one instance of the tag.
<COLGROUP ID="dkm">
Possible Values
Any ID Name.
SPAN
Indicates how many consecutive columns exist in the column group and to which columns the specified attributes apply.
<COLGROUP>
<COL ALIGN="RIGHT" SPAN="2">
Possible Values
Any positive integer number.
STYLE
Specifies Style Sheet commands that apply to the contents of the <COLGROUP> tags.
<COLGROUP STYLE="color:red">
Possible Values
CSS property with value.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the column group.
<COLGROUP TITLE="Column Group">
Possible Values
Any Text Message.
VALIGN
Vertically positions the contents of the table column. VALIGN="TOP" positions the contents flush with the top of the column. VALIGN= ÓBOTTOMÓ positions the contents flush with the bottom. VALIGN="CENTER" positions the contents at the vertical center of the column. VALIGN="BASELINE" aligns the contents with the baseline of the current text font.
<COLGROUP VALIGN="TOP">
Possible Values
TOP, BOTTOM, BASELINE, MIDDLE
WIDTH
Specifies the horizontal dimension of columns within the column group (in pixels or as a percentage). Special values of "0*" force the column to minimum required width, and "2*" requires that the column receive proportionately twice as much space as it otherwise would.
<COLGROUP WIDTH=100>
<COL ALIGN="RIGHT">
Possible Values
value in Pixel or percentage.