HTML textarea Tag

HTML textarea Tag

In HTML <textarea> tag is used to define a text area input control. In text area we can type multiple lines.

In text area unlimited number of characters and the texts are displayed. We can define size of text area with the use of two attribles cols and rows or it can define with the css height and width properties.


<textarea cols="50" rows="5">  
A simple example of textarea tag example.  


Attribute Description
autofocus Specifies that a text area should be automatically get focused when the page is loaded.
form Specifies one or more forms the textarea belongs to.
maxlength Specifies the maximum number of characters allowed in the text area.
placeholder Specifies a short hint that describes the expected value of a textarea.
required Specifies that textarea must be filled out.
wrap Specifies that how the texts in the textarea are wrapped at the time of the submission of the form.