HTML TextareaThe HTML is used to define a multi-line text input control. It can hold unlimited number of characters and the texts are displayed in a fixed-width font (usually courier). The size of the HTML textarea is defined by HTML Textarea Example |
Output:
Element | Chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes |
Attribute | Description |
---|---|
autofocus | It specifies that a text area should be automatically get focused when the page is loaded. |
form | It specifies one or more forms the textarea belongs to. |
maxlength | It specifies the maximum number of characters allowed in the text area. |
placeholder | It specifies a short hint that describes the expected value of a textarea. |
required | It specifies that textarea must be filled out. |
wrap | It specifies that how the texts in the textarea are wrapped at the time of the submission of the form. |
The form attribute specifies one or more forms the text area belongs to.
The text area above is outside the form element, but should still be a part of the form.
Note: The form attribute is not supported in Internet Explorer.
Output:
The textarea element above is outside the form , but it is still the part of the form.
Note: The form attribute is not supported in Internet Explorer.