HTML Textarea Tag
The HTML Textarea element is used together with forms to submit data to the server, sometimes it may also be used to show code examples.
The textarea element can be resized in the browser, so you may want to apply maximum and minimum width and heights.
Attributes
| Attribute: | Value: | Description: |
| Attributes | Other Attributes | Common, I18n, Event |
| name | Character Data | name of element |
| rows | GET|POST | Rows of textarea. |
| cols | ContentType | Columns of textarea. |
| disabled | disabled | disables the element |
| readonly | readonly | |
| tabindex | NUMBER | Position in tabbing order. |
| accesskey | {CHARACTER} | Key for accessibility. |
| onfocus | Script | The element got the focus. |
| onblur | Script | The element lost the focus. |
| onselect | Script | Some text was selected. |
| onchange | Script | The elements value was changed. |
HTML Textarea Example
<p><textarea cols="40" rows="5" name="textmsg"></textarea></p>