Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <textarea> form Attribute

Improve Article
Save Article
  • Last Updated : 22 Jul, 2022
Improve Article
Save Article

The HTML <textarea> form Attribute is used to specify the one or more forms that the <Textarea> element belongs to.

<Textarea form="form_id"> 

Attribute Values: 

  • form_id: It Contains the value i.e form_id which specify the one or more  form that the Textarea element belongs to. The value of this attribute should be id of the <form> element.



<!DOCTYPE html>
    <title>Textarea Form Attribute</title>
    fieldset {
        width: 50%;
        margin-left: 22%;
    h1 {
        color: green;
        <h2><textarea> form Attribute</h2>
        <textarea form="mygeeks" cols="20" ;>
            GeeksForGeeks. A computer science portal for Geeks
        <form id="mygeeks">
            <input type="text" name="usrname">
            <input type="submit">


Supported Browsers: The browser supported by HTML <Textarea>form Attribute are listed below: 

  • Google Chrome 1
  • Edge 12
  • Internet Explorer 6
  • Firefox 1
  • Opera 12.1
  • Safari 4


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!