HTML Attributes
HTML cols attribute
Sets the approximate visible width of a textarea in character columns. The default is 20; CSS can override its rendered size. Applicable elements include: <textarea>. Check each element’s value rules.
Formal Syntax & Structure
html syntaxhtml
cols="35"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| cols | positive integer | Sets the approximate visible width of a textarea in character columns. The default is 20; CSS can override its rendered size. |
Working Example
Example Snippethtml
<label>Notes <textarea cols="35" rows="4"></textarea></label>