HTML | <textarea> form Attribute
The HTML <textarea> form Attribute is used to specify the one or more forms that the <Textarea> element belongs to.
Syntax:
<Textarea form="form_id">
Attribute Values:
- form_id: It Contains the value i.e form_id which specify the one or more than the Textarea element belongs to. The value of this attribute should be id of the <form> element.
Example:
<!DOCTYPE html> <html> <head> <title>Textarea Form Attribute</title> <style> } fieldset { width: 50%; margin-left: 22%; } h1 { color: green; } </style> </head> <body> <center> <h1>GeeksforGeeks</h1> <h2><textarea> form Attribute</h2> <textarea form="mygeeks" cols="20" ;> GeeksForGeeks. A computer science portal for Geeks </textarea> <br> <form id="mygeeks"> Name: <input type="text" name="usrname"> <input type="submit"> </form> </center> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML <Textarea>form Attribute are listed below:
- Google Chrome
- Internet Explorer 10.0 +
- Firefox
- Opera
- Safari
Recommended Posts:
- HTML | form Attribute
- HTML | <form> name Attribute
- HTML | <fieldset> form Attribute
- HTML | <form> onreset Attribute
- HTML | <form> target Attribute
- HTML | <button> form Attribute
- HTML | <form> enctype Attribute
- HTML | <meter> form Attribute
- HTML | <label> form Attribute
- HTML | <form> autocomplete Attribute
- HTML | <form> method Attribute
- HTML | <form> novalidate Attribute
- HTML | <output> form Attribute
- HTML | <object> form Attribute
- HTML | <input> form Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



