HTML col Tag
HTML col Tag
The col tag specifies column properties for each column within a colgroup element. It is useful when we want to apply a style to the entire column unlike applying styles on each cell of each row in a table. It is a self-closing tag i.e, it do not need an ending tag.
Attribute Explanation:-
Attribute | Value | Description |
---|---|---|
span | number | Specifies number of columns a col element should span |
Syntax:-
Its syntax is:- < col >