Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <textarea> name Attribute

❮ HTML <textarea> tag

Example

A text area with a name attribute:

<form action="/action_page.php">
  <textarea name="comment">Enter text here...</textarea>
  <input type="submit">
</form>
Try it Yourself »

Definition and Usage

The name attribute specifies a name for a text area.

The name attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted.


Browser Support

Attribute
name Yes Yes Yes Yes Yes

Syntax

<textarea name="text">

Attribute Values

Value Description
text Specifies the name of the text area

❮ HTML <textarea> tag