What is <Textarea> tag in HTML and How to use? :
• The <textarea> tag used to create a multi-line textbox.
• With the help of this tag user can fill detailed form with multi-line characters. It is also a container tag and have opening and closing tag.
Following are attributes of textarea tag:
1. name : It is used to assign name for the textarea when user submit data.
2. rows : This attribute specifies the number of lines in a textarea.
3. cols : this attribute specifies the width of a text area. Both have values in numbers.
4. Maxlength : This attribute specifies the maximum number of characters allowed in the textarea.
5. placeholder : this attribute provides a hint that describes the expected value of a textarea.
6. required : this attribute specifies that textarea must be filled and cannot be left blank. (This attribute is statement i.e. it cannot have value)
Syntax of textarea tag:
<textarea attribute= "value" > </textarea>
( ID - it defines unique name or identity to a particular element)
Comments
Post a Comment