|
|
HTML <textarea> tag
Syntax
<textarea> - </textarea>
Definition and Usage
The TEXTAREA element specifies a multiline text
input control.
Required Attributes
| Attribute |
Value |
Description |
| cols |
number |
Specifies the number of columns visible in the text-area |
| rows |
number |
Specifies the number of rows visible in the text-area |
Optional Attributes
| Attribute |
Value |
Description |
| disabled |
disabled |
Disables the text-area when it is first displayed |
| name |
name of textarea |
Specifies a name for the text-area |
| readonly |
readonly |
Indicates that the user cannot modify the content in the
text-area |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang, tabindex,
accesskey |
For a full description, go to Standard
Attributes.
Event Attributes
| onfocus, onblur, onselect, onchange, onclick, ondblclick,
onmousedown, onmouseup, onmouseover, onmousemove, onmouseout,
onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
Example
| Source |
Output |
<textarea rows="3" cols="15">
This is the text...
</textarea> |
|
|
|