Easy Tutorial
❮ Tag Input Att Canvas Width ❯

HTML <colgroup> align Attribute

HTML <colgroup> Tag

Example

Two <colgroup> elements define different alignment methods for three columns in a table (note that the first <colgroup> element spans across two columns):


Browser Support

Only Opera and Internet Explorer 8 and earlier versions (IE 9 does not support) support the align attribute (IE 9 does not support).


Definition and Usage

The align attribute specifies the horizontal alignment of content in a column group.


Syntax

Attribute Values

Value Description
left Left-aligns the content (default).
right Right-aligns the content.
center Centers the content (default for th elements).
justify Stretches the lines so that each line has equal width (like in newspapers and magazines).
char Aligns the content to a specific character.
❮ Tag Input Att Canvas Width ❯