col

col elements define the alignment properties for cells in
      one or more columns.

      The width attribute specifies the width of the columns, e.g.

          width=64        width in screen pixels
          width=0.5*      relative width of 0.5

      The span attribute causes the attributes of one
      col element to apply to more than one column.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
align restriction of xs:token optional
char Character optional
charoff Length optional
class xs:NMTOKENS optional
dir restriction of xs:token optional
id xs:ID optional
lang LanguageCode optional
onclick Script optional
ondblclick Script optional
onkeydown Script optional
onkeypress Script optional
onkeyup Script optional
onmousedown Script optional
onmousemove Script optional
onmouseout Script optional
onmouseover Script optional
onmouseup Script optional
span Number 1 optional
style StyleSheet optional
title Text optional
valign restriction of xs:token optional
width MultiLength optional
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.

Used By

Elements colgroup, table

Source

<xs:element name="col">
  <xs:annotation>
    <xs:documentation>col elements define the alignment properties for cells in one or more columns. The width attribute specifies the width of the columns, e.g. width=64 width in screen pixels width=0.5* relative width of 0.5 The span attribute causes the attributes of one col element to apply to more than one column.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attributeGroup ref="attrs"/>
    <xs:attribute name="span" default="1" type="Number"/>
    <xs:attribute name="width" type="MultiLength"/>
    <xs:attributeGroup ref="cellhalign"/>
    <xs:attributeGroup ref="cellvalign"/>
  </xs:complexType>
</xs:element>

Sample