Open In App

HTML | <textarea> name Attribute

Last Updated : 22 Jul, 2022
Improve
Improve
Like Article
Like
Save
Share
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

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads