A text area is a multiline text field. A user can write an unlimited number of characters in the text area.
<textarea>……</textarea>
| Attribute | Value | Description |
| autofocus | autofocus | Specifies that a text area should automatically get focus when the page loads |
| cols | number | Specifies the visible width of a text area |
| dirname | textareaname.dir | Specifies that the text direction of the textarea will be submitted |
| disabled | disabled | Specifies that a text area should be disabled |
| form | form_id | Specifies one or more forms the text area belongs to |
| maxlength | number | Specifies the maximum number of characters allowed in the text area |
| name | text | Specifies a name for a text area |
| placeholder | text | Specifies a short hint that describes the expected value of a text area |
| readonly | readonly | Specifies that a text area should be read-only |
| required | required | Specifies that a text area is required/must be filled out |
| rows | number | Specifies the visible number of lines in a text area |
| wrap | Soft(default) hard | Specifies how the text in a text area is to be wrapped when submitted in a form |
| Value | Description |
| soft | The text in the textarea is not wrapped when submitted in a form. |
| hard | The text in the textarea is wrapped (contains newlines) when submitted in a form. When “hard” is used, the cols attribute must be specified |
Latest posts by vikashdev k (see all)
- PHP OOP: Traits - October 25, 2021
- PHP OOP: Late Static Binding - October 25, 2021
- PHP OOP : Static Members - October 23, 2021