ⓘ col – table column # T
The
col
element represents one or more columns in the column group
represented by its
colgroup
parent.
Permitted attributes #
- ⓘ
global attributes
- Any attributes permitted globally.
- ⓘ
span =
positive integer
#
- Specifies the number of columns “spanned” by its
col
element; the
col
element shares its attributes with all the columns it
spans.
Additional constraints and admonitions #
-
The “align” attribute on the “col” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “width” attribute on the “col” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “char” attribute on the “col” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “charoff” attribute on the “col” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
-
The “valign” attribute on the “col” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
Permitted parent elements #
colgroup
DOM interface #
interface HTMLTableColElement : HTMLElement {
attribute unsigned long span;
};
Typical default display properties #