HTMLTableColElement
The HTMLTableColElement interface provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements.
Properties
Inherits properties from its parent, HTMLElement.
-
HTMLTableColElement.align -
Is a
DOMStringthat indicates the horizontal alignment of the cell data in the column. -
HTMLTableColElement.ch -
Is a
DOMStringrepresenting the alignment character for cell data. -
HTMLTableColElement.chOff -
Is a
DOMStringrepresenting the offset for the alignment character. HTMLTableColElement.span-
Is an
unsigned longthat reflects thespanHTML attribute, indicating the number of columns to apply this object's attributes to. Must be a positive integer. -
HTMLTableColElement.vAlign -
Is a
DOMStringthat indicates the vertical alignment of the cell data in the column. -
HTMLTableColElement.width -
Is a
DOMStringrepresenting the default column width.
Methods
No specific method; inherits methods from its parent, HTMLElement.
Specifications
| Specification |
|---|
| HTML Standard (HTML) # htmltablecolelement |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
HTMLTableColElement |
1 |
12 |
1 |
5.5 |
≤12.1 |
3 |
1 |
18 |
4 |
≤12.1 |
1 |
1.0 |
align |
1 |
12 |
1 |
5.5 |
≤12.1 |
3 |
1 |
18 |
4 |
≤12.1 |
1 |
1.0 |
ch |
1 |
12 |
1 |
6 |
≤12.1 |
3 |
1 |
18 |
4 |
≤12.1 |
1 |
1.0 |
chOff |
1 |
12 |
1 |
6 |
≤12.1 |
3 |
1 |
18 |
4 |
≤12.1 |
1 |
1.0 |
span |
1 |
12 |
1 |
5.5 |
≤12.1 |
3 |
1 |
18 |
4 |
≤12.1 |
1 |
1.0 |
vAlign |
1 |
12 |
1 |
5.5 |
≤12.1 |
3 |
1 |
18 |
4 |
≤12.1 |
1 |
1.0 |
width |
1 |
12 |
1 |
5.5 |
≤12.1 |
3 |
1 |
18 |
4 |
≤12.1 |
1 |
1.0 |
See also
- The HTML element implementing this interface:
<col>and<colgroup>.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement