A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-textarea-form-attribute/ below:

HTML | <textarea> form Attribute

HTML | <textarea> form Attribute

Last Updated : 22 Jul, 2022

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: 
 


Example: 
 

html
<!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>&lt;textarea&gt; 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>

Output: 
 


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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4