Skip to content
Related Articles

Related Articles

HTML | <textarea> name Attribute
  • Last Updated : 27 May, 2019

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:




<!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
  • Firefox
  • Edge
  • Opera
  • Apple Safari

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :