<textarea></textarea> element represents a multi-line plain-text editing control.
|Boolean||This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified. (HTML5)|
|positive integer|| The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is |
|Boolean||This Boolean attribute indicates that the user cannot interact with the control. (If this attribute is not specified, the control inherits its setting from the containing element; if there is no containing element with the disabled attribute set, then the control is enabled).|
|id|| The form element that the |
|number||The maximum number of characters (Unicode code points) that the user can enter. If it is not specified, the user can enter an unlimited number of characters. (HTML5)|
|name||The name of the control.|
|hint||A hint to the user of what can be entered in the control. The placeholder text must not contain carriage returns or line-feeds. (HTML5)|
|Boolean|| This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the |
|This attribute specifies that the user must fill in a value before submitting a form. (HTML5)|
|number||The number of visible text lines for the control.|
| Indicates how the control wraps text.
<form> <textarea name="foo" rows="3" cols="40"> Default <textarea> value goes here. </textarea> </form>
Community content is available under CC-BY-SA unless otherwise noted.