Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

cols attribute | cols property

Sets or retrieves the width of the object.

HTML 4.01 Specification, Section 17.7

 

Syntax

HTML<element cols="p" ... >
JavaScript

p = object.cols

 

Property values

Type: Integer

the number of characters used to determine the width of the object.

20

Default value.

Standards information

See also

textArea

 

 

Show:
© 2015 Microsoft