tag

HTML

tag specifies group of column within an HTML table. It is used a parent container of one or more elements to apply different properties in an HTML table.

NOTE: The

tag must be used with

HTML

element after the or elements.
and before

Syntax

Following are some specifications about the HTML tag

Display None
Start tag/End tag Start tag and End Tag
Usage HTML tables

Example

Test it Now

Output:

HTML colgroup tag

Attributes

Attribute Value Description
align
  • left
  • center
  • right
  • justify
  • char
It specifies the alignment of the column content. (Not supported in HTML5).
char character It specifies the alignment of the content in a column group to the character. (Not supported in HTML5).
charoff number It sets the number of characters to offset the column data from the alignment character specified by the char attribute. (Not supported in HTML5).
span number It specifies the number of columns a colgroup should span.
valign
  • top
  • middle
  • bottom
  • baseline
It specifies the vertical alignment of the column group. (Not supported in HTML5).
width
  • %
  • Pixels
  • relative_length
It specifies the width of the group of column. (Not supported in HTML5).

Global Attribute

HTML tag supports all Global attributes in HTML.

Event Attribute

HTML tag supports all event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML data Tag




Contact US

Email:[email protected]

HTML colgroup Tag
10/30