HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML colgroup Tag

HTML colgroup Tag



The colgroup tag specifies a group of one or more columns in a table for formatting.  The colgroup tag is useful for applying styles to entire columns. It must come after table tag and before any other tag which is present in the table like theadtbodytrtd, and th. For defining properties to column in colgroup, we use col tag within colgroup tag.


Attribute Explanation:-


Attribute Value Description
span number Specifies the number of columns a column group should span




Its syntax is:- < colgroup >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML