Name

COLS — NN 4 IE 3 HTML n/a

Synopsis

COLS=”columnCount"

Optional

The number of columns of the table. The HTML specification never adopted this attribute. In HTML 4.0, the functionality of this attribute is covered by the COLGROUP and COL elements. In the meantime, the COLS attribute is recognized by current browsers. The attribute assists the browser in preparation for rendering the table. Without this attribute, the browser relies on its interpretation of all downloaded TR and TD elements to determine how the table is to be divided.

Example

<TABLE COLS=4>...</TABLE>

Value

Any positive integer.

Default

None.

Object Model Reference

IE

[window.]document.all.elementID.cols

Get Dynamic HTML: The Definitive Reference 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.