HTML <textarea> name attribute
Definition and usage
name
The attribute specifies the name of the text area.
name
The attribute is used to reference elements in JavaScript or to reference form data after submitting the form.
Example
Text area with name attribute set:
<form action="/action_page.php"> <textarea name="comment">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 |