About
The textarea tag defines a multi-line text input control.
A text area can hold an unlimited number of characters.
In HTML, a <textarea> element defines its text by its children.
Font
The text renders in a fixed-width font (usually Courier) (ie fixed pitch).
Attribute
Attributes | Default | Desc |
---|---|---|
cols | 20 with the lift, 22 otherwise | the expected maximum number of characters per line |
rows | 3 | the number of lines to show |
Example
Default
- HTML
<textarea cols=15 rows=4>
012345678901234567890123456789012345678901234567890123456789012345678901234567890
</textarea>
- Output:
Event
When the value changes, it fires an input event.
Library
- http://www.jacklmoore.com/autosize/ - Box will grow while you type.