HTML | <textarea> name Attribute

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;">
            w3wiki
        </h1>
 
    <h2>
            HTML Textarea name Attribute
        </h2>
 
    <textarea id="GFG" name="GFG_text">
        A computer science portal for Beginner.
    </textarea>
 
    <br>
  </center>
</body>
 
</html>


Output:

  

Supported Browsers:

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

Contact Us