From Web Education Community Group
< HTML‎ | Elements
Revision as of 13:20, 19 November 2011 by Rworth (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The <col> element represents one or more columns in the column group represented by that colgroup.


  • As a child of a colgroup element that doesn't have a span attribute.

HTML Attributes

  • span = valid non-negative integer

See also global attributes.


Example A

[try it]:

    <col span="2" style="background-color: #ff0000;"></col>


HTML Reference

The HTML5 specification defines the <col> element in 4.9.4 The col element.