This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* Some parts of this feature may have varying levels of support.
The HTMLTableColElement interface provides properties for manipulating single or grouped table column elements.
Inherits properties from its parent, HTMLElement.
HTMLTableColElement.align Deprecated
A string that indicates the horizontal alignment of the cell data in the column.
HTMLTableColElement.ch Deprecated
A string representing the alignment character for cell data.
HTMLTableColElement.chOff Deprecated
A string representing the offset for the alignment character.
HTMLTableColElement.spanA positive number that reflects the span HTML attribute, indicating the number of columns to apply this object's attributes to.
HTMLTableColElement.vAlign Deprecated
A string that indicates the vertical alignment of the cell data in the column.
HTMLTableColElement.width Deprecated
A string representing the default column width.
No specific method; inherits methods from its parent, HTMLElement.
| Specification |
|---|
| HTML> # htmltablecolelement> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
HTMLTableColElement |
1 | 12 | 1 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 4.4 | 1 |
align |
1 | 12 | 1 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 4.4 | 1 |
ch |
1 | 12 | 1 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 4.4 | 1 |
chOff |
1 | 12 | 1 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 4.4 | 1 |
span |
1 | 12 | 1 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 4.4 | 1 |
vAlign |
1 | 12 | 1 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 4.4 | 1 |
width |
1 | 12 | 1 | ≤12.1 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 | 4.4 | 1 |
<col> and <colgroup>.
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement