{{DomRef}}
The HTMLTableColElement
interface provides special properties (beyond the {{domxref("HTMLElement")}} interface it also has available to it inheritance) for manipulating single or grouped table column elements.
Properties
Inherits methods from its parent, {{domxref("HTMLElement")}}.
Name | Type | Description |
---|---|---|
align {{obsolete_inline}} |
{{domxref("DOMString")}} | Indicates the horizontal alignment of the cell data in the column. |
ch {{obsolete_inline}} |
{{domxref("DOMString")}} | Alignment character for cell data. |
chOff {{obsolete_inline}} |
{{domxref("DOMString")}} | Offset for the alignment character. |
span |
unsigned long |
Reflects the {{htmlattrxref("span", "col")}} HTML attribute, indicating the number of columns to apply this object's attributes to. Must be a positive integer. |
vAlign {{obsolete_inline}} |
{{domxref("DOMString")}} | Indicates the vertical alignment of the cell data in the column. |
width {{obsolete_inline}} |
{{domxref("DOMString")}} | Default column width. |
Methods
No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "tabular-data.html#htmltablecolelement", "HTMLTableColElement")}} | {{Spec2('HTML WHATWG')}} | No change from {{SpecName("HTML5 W3C")}}. |
{{SpecName('HTML5 W3C', "tabular-data.html#htmltablecolelement", "HTMLTableColElement")}} | {{Spec2('HTML5 W3C')}} | The span property is now an unsigned long . |
{{SpecName('DOM2 HTML', 'html.html#ID-84150186', 'HTMLTableColElement')}} | {{Spec2('DOM2 HTML')}} | No change from {{SpecName("DOM1")}} |
{{SpecName('DOM1', 'level-one-html.html#ID-84150186', 'HTMLTableColElement')}} | {{Spec2('DOM1')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
ch and chOff |
{{CompatUnknown}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
ch and chOff |
{{CompatUnknown}} | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
See also
- The HTML element implementing this interface: {{HTMLElement("col")}} and {{HTMLElement("colgroup")}}.