Name

HTMLTableColElement — a <col> or <colgroup> in an HTML table

Availability

DOM Level 1 HTML

Inherits from/Overrides

Node Element HTMLElement HTMLTableColElement

Properties

This interface defines the properties in the following table, each of which corresponds to an HTML attribute of a <col> or <colgroup> element.

Property

Attribute

Description

String align

align

Default horizontal alignment

String ch

char

Default alignment character

String chOff

choff

Default alignment offset

long span

span

Number of columns represented by this element

String vAlign

valign

Default vertical alignment

String width

width

Width of the column(s)

Description

This interface represents a <col> or <colgroup> element in an HTML table.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.