{{ DomRef() }}
HTML table column element interface
DOM table column objects (which may correspond to {{ HTMLElement("col") }} or {{ HTMLElement("colgroup") }} HTML elements) expose the HTMLTableColElement (or HTML 4 HTMLTableColElement
) interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating table column elements.
Properties
Name | Type | Description |
---|---|---|
align {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} | DOMString | Indicates the horizontal alignment of the cell data in the column. |
ch {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} | DOMString | Alignment character for cell data. |
chOff {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} | 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() }} in {{ HTMLVersionInline("5") }} | DOMString | Indicates the vertical alignment of the cell data in the column. |
width {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} | DOMString | Default column width. |
See also
- {{ HTMLElement("col") }} HTML element
- {{ HTMLElement("colgroup") }} HTML element