The HTML5 col Tag

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.

Featured pages

Overview

Learn about HTML5 architecture, design principles and patterns on HTML5 Overview Tutorial. Become …

Tags

Learn about HTML5 tags and discover a new list of HTML5 tags. Find out about HTML5 tags support by…

Welcome

 Learn HTML5 development techniques, tips and tricks on our website. Find out what is required…

Date Time Picker

HTML5 forms use date and time controls regularly. HTML5 date and time controls are used by booking …