THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <textarea> name Attribute

HTML textarea Tag Reference HTML <textarea> tag

Example

A text area with a name attribute:

<form action="demo_form.asp">
  <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

Differences Between HTML 4.01 and HTML5

NONE.


Syntax

<textarea name="text">

Attribute Values

Value Description
text Specifies the name of the text area

HTML textarea Tag Reference HTML <textarea> tag