TextArea is mainly used when the user has to enter large amount of text.
Attribute
Description
Name
This attribute specifies the name of the object through which it can be referenced.
Autocomplete
Values : off | on . Input element should have autocomplete .
autofocus
Focus ( crusher inside ) the input textarea box by default .
cols
Integer value specifying number of columns or width to be used for textbox
disabled
true | false : User can't access the element and data is not submitted with form.
rows
Integer value specifying number of rows or number of visible line text, manage the height for textbox
wrap
hard | soft :text will not wrap and is submitted as it is entered by the user.
placeholder
Hint , help or about the input requirment can be given to user.
maxlength
Maximum number of chars can be entered inisde textarea. If not specified than unlimited number of chars can be entered.
minlength
Minimum number of chars can be entered inisde textarea. If not specified than blank can be entered.
readonly
true | false : User can't alter the data , user can click and select content, data submitted along with other elements of the form.
Difference between readonly and disabled
If readonly is set to True , users can access the data by selecting and copying, but can't alter the data of the textarea . Data of the textarea is submitted along with other elements of the form.
If disabled is set to True, users can't access the data. This element is not submitted along with other data of the form
required
true|false: User must enter text before submitting the form.
ID
ID='my_textarea1': One unique identification (within the page or DOM structure ) for the textarea element.
form
ID: Textarea can be connected ( associated ) to any from identified by its ID, the element need not be inside the opening and closing tags of the form.