Home Home -> HTML Reference -> Tag Reference - col

Tag Reference - col

Description

This element defines a column within a table. It can be used to apply alignment and formatting to all cells in the column.

Attributes


align
Controls the overall alignment of the column or columns within a column group.

char
Indicates the character which the cells in the column should align to. For example, a decimal point "." could be specified for financial data.

charoff
Indicates how many characters to offset the alignment by, when aligned using the "char" attribute.

class
The CSS style class to be applied to this tag. This could be used, for example, to create a style for "important" items, using a line in the style sheet as below:

.important { font-color: red }

This can be applied to the tag as follows:

<b class="important">This is important.</b>

dir
Overrides the direction of the text from the standard direction. "rtl" displays the text from right to left, "ltr" from left to right.

id
A unique alphanumeric identifier used to identify this object/tag. This identifier can be used in scripting languages to refer to the tag or object.

lang
The language of the text enclosed by this tag, as defined in RFC 1766 (eg en-gb for British English).

span
Specifies how many columns are included in the group by default.

style
Inline style-sheet information.

title
Advisory text for this tag - this could define an abbreviation or acronym, explain where a link goes or provide some other useful description.

valign
Sets the vertical alignment of the item (Microsoft specific).

width
Sets the width of the object.