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.
The text renders in a fixed-width font (usually Courier) (ie fixed pitch).
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 |
<textarea cols=15 rows=4>
012345678901234567890123456789012345678901234567890123456789012345678901234567890
</textarea>
When the value changes, it fires an input event.