Open In App
Related Articles

HTML | <textarea> name Attribute

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

The HTML <textarea> name Attribute is used to specify a name of the <Textarea> Element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. 

Syntax:

<Textarea name="text"> 

Attribute Values: It contains the value i.e name which specify the name for the <Textarea> element. 

Example: 

html

<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML Textarea name Attribute
    </title>
</head>
 
<body>
  <center>
    <h1 style="color: green;">
            GeeksforGeeks
        </h1>
 
    <h2>
            HTML Textarea name Attribute
        </h2>
 
    <textarea id="GFG" name="GFG_text">
        A computer science portal for geeks.
    </textarea>
 
    <br>
  </center>
</body>
 
</html>

                    

Output:

  

Supported Browsers:

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

Last Updated : 22 Jul, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads