![]() |
|
<col Sets the text alignment of one or more columns. Use this tag in conjunction with a <colgroup> tag to set the properties of a column within a group of columns. This tag is valid only within a table. The end-tag is not required and is not recommended. The properties specified by the <col> tag always override the properties specified by the preceding <colgroup> tag. AttributesSpecifies the horizontal text alignment of cells in the column. The default is center.
char=char A single character for the alignment of text in the column. The default value is the decimal point of the current language charoff=n Specifies the offset to the first occurrence of the alignment character. The attribute's value is a number in pixels or a percentage of the cell's width class=type Indicates the class to which the tag belongs. You can use the class attribute in a style sheet to create different styles that you want apply to a single HTML tag. For example, you might create three different styles for a <col> tag. See Using the class attribute as a selector for more details. dir=ltr|rtr Specifies the direction of text. This can be left-to-right (ltr) or right-to-left (rtl). For example, English characters are presented left-to-right, Hebrew characters are presented right-to-left. id=value Specifies a unique name for the tag. No two tags can have the same id on a single page. The value must begin with a letter followed by any alphanumeric character, a hyphen, an underscore, a colon or a full stop. You use it to reference a unique style for a tag or to manipulate the tag with a script. lang=language Specifies which language the <col> tag uses. You can enter any valid ISO standard language abbreviation, for example, “en” for English, “de” for German and so on. For example, <span lang="es">hola! como esta?</span>. This attribute helps search engines understand different languages as different languages rather than just misspelled English. It may also help spelling and grammar checkers and allow speech synthesizers to use language-dependent pronunciation rules. Specifies the number of consecutive columns for which the alignment is set. style=style Specifies style information. See Style sheets for more information. title=text For information only. Some browsers display the title when you move the mouse over the tag (like a tool tip). valign=baseline|bottom|middle|top Specifies the vertical text alignment in cells within the column. The default is center.
width=n Specifies a width for each column spanned. The value must be a number in pixels, a percentage of the table width, or a relative length expressed as i* where i is an integer. A column with width="3*" will be allotted three times the width of a column with width="1*". The value 0* is equivalent to the minimum width necessary for the column's contents. |
More information |