HTML <textarea> name attribute
Definition and Usage
name
This attribute defines the name of the text area.
name
This attribute is used to reference elements in JavaScript or to reference form data after the form is submitted.
Example
Text area with the name attribute set:
<form action="/action_page.php"> <textarea name="comment">Please enter text here ...</textarea> <input type="submit"> </form>
Syntax
<textarea name="text">
Attribute Value
Value | Description |
---|---|
text | Define the name of the text area. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |