HTML <colgroup> tag
HTML colgroup tag:
This is a a double tag. <colgroup> This is the beginning tag and </colgroup> this is the closing tag. This <colgroup> element specifies a group of More than one columns in a table for formatting an HTML documents. The HTML <colgroup> tag is useful for applying styles to entire columns, as an alternative of repeating the styles for every cell, for every row. This tag using for representing a group of columns into a table. This tag must be used as a child of a <table> tag after any
<caption>
elements and before any <thead>
, <tbody>
, <tfoot>
, and <tr>
tag.
<Colgroup>=groups of table columns.
Copy this code and past your page.
Copy this code and past your page.
Example:
Result:
Name
brand
Price
Samsang S9
Samsang
$600
Example:
Result:
Month | Weight | Difference |
---|---|---|
April | 72kg | -7kg |
May | 77kg | +7kg |
Jun | 85kg | +5kg |
Support Browser
![]() Chrome | ![]()
Internet
Explorer
| Firefox | ![]() Opera | ![]() Safari | |
---|---|---|---|---|---|
<colgroup>
| Yes | Yes | Yes | Yes | Yes |
- Elements Attributes: span,style,color,background color etc.
- Html Version Differenc: Differences Between HTML 5 and 4.01.
in HTML5 most of the attributes in HTML 4.01 are not supported.
If you want make representing a group of columns into a table.using HTML code, Use HTML<colorgroup> element.
1. What is the <colgroup> tag ?
2. What is the using for <colgroup> tag ?
3. What is the definition of <colgroup> tag ?
4. What is the <colgroup> tag mean ?
5. How can You make representing a group of columns into a table using HTML?
2. What is the using for <colgroup> tag ?
3. What is the definition of <colgroup> tag ?
4. What is the <colgroup> tag mean ?
5. How can You make representing a group of columns into a table using HTML?