HTML <textarea> name Attribute

❮ HTML <textarea> tag


<form action="action.php">
  <textarea name="textareaText">Hello world!</textarea>

  <input type="submit" value="Submit">


The name attribute allows a form control to be assigned a name for submitting to the server the appropriate name/value pair.

Previously it was also used so that the field could be referenced by a scripting language but it is more appropriate to use the idattribute.

For compatibility purposes, both attributes might be used and set to the same value.

Standard Syntax

<textarea name="uniqueName">...</textarea>

Browser Support


Attribute Values

Value Description
uniqueName Specifies the element name.
❮ HTML <textarea> tag