Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Pro

HTML <textarea> name Attribute

❮ HTML <textarea> tag


A text area with a name attribute:

<form action="/action_page.php">
  <textarea name="comment">Enter text here...</textarea>
  <input type="submit">
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

name Yes Yes Yes Yes Yes


<textarea name="text">

Attribute Values

Value Description
text Specifies the name of the text area

❮ HTML <textarea> tag