The HTML5 <col> tag is important in defining the properties for each column. It is used within a <colgroup> element. The use of HTML5 <col> tag is extensive because it allows uniformity in styles for each column. It is the key in avoiding the need to repeatedly define the styles for each cell within a row.
A lot of the attributes that are used for HTML4.01 <col> tag are no longer used for HTML5. The attributes for HTML5 <col> tags are the following:
|
Attribute
|
Value
|
Description
|
|
align
|
left
right
center
justify
char
|
HTML5 does not support it
|
|
char
|
character
|
HTML5 does not support it.
|
|
charoff
|
number
|
HTML5 does not support it.
|
|
span
|
number
|
Specifies the
number of columns a <col> element should span
|
|
valign
|
top
middle
bottom
baseline
|
HTML5 does not support it.
|
|
width
|
%
pixels
relative_length
|
HTML5 does not support it.
|
The <col> tag is capable of supporting the Global Attributes and Event Attributes in HTML5. It is also recognized by the major web browsers like Safari, Google Chrome, Internet Explorer, Firefox and Opera.