HTML: Text Area

A text area is a multiline text field. A user can write an unlimited number of characters in the text area.

<textarea>……</textarea>
AttributeValueDescription
autofocusautofocusSpecifies that a text area should automatically get focus when the page loads
colsnumberSpecifies the visible width of a text area
dirnametextareaname.dirSpecifies that the text direction of the textarea will be submitted
disableddisabledSpecifies that a text area should be disabled
formform_idSpecifies one or more forms the text area belongs to
maxlengthnumberSpecifies the maximum number of characters allowed in the text area
nametextSpecifies a name for a text area
placeholdertextSpecifies a short hint that describes the expected value of a text area
readonlyreadonlySpecifies that a text area should be read-only
requiredrequiredSpecifies that a text area is required/must be filled out
rowsnumberSpecifies the visible number of lines in a text area
wrapSoft(default)
hard
Specifies how the text in a text area is to be wrapped when submitted in a form
ValueDescription
softThe text in the textarea is not wrapped when submitted in a form.
hardThe text in the textarea is wrapped (contains newlines) when submitted in a form. When “hard” is used, the cols attribute must be specified
vikashdev k
Latest posts by vikashdev k (see all)
Tagged : / / / / / / / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x