asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > COLS Attribute

cols Attribute


Retrieves the width of the object, in characters.

Applies To:

Syntax

Inline <element COLS = iCount...>
Script [ iCount = ] object.cols

Possible Values

iCount Integer specifying the number of characters.

The property is read-only with a default value of 20.

Applies To

HTMLAREA, TEXTAREA

See Also

ROWS Attribute


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note