HTML col Tag

Html col tag


Define :
This tag specifies column properties for each column within a 
<colgroup>    element. It is used to set the background color with the help of  <col> tag and it is useful for applying styles to entire columns.
For Example :


Output :
  
Browser Support
All browser are supports like opera, firefox, chrome, microsoft edge.

Global and Event Attributes
This tag also supports the Global and Event Attributes in HTML.

Attributes ;
element should span  element should span
Attribute Description
span
It is defined as the number of columns a <col> element should span
 
  •  Align text in table columns with the help of CSS.
Example :

Output :
    
  • Vertical-align text in table columns in CSS
Example : 

Output :