Horje

How to add HTML <textarea> name Attribute

It is A text area with a name attribute.

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.

Syntax

<textarea name="text">

Attribute Values

Value Description
text Specifies the name of the text area
index.html
Example: HTML
 <form action="/action_page.php">
  <textarea name="comment">Enter text here...</textarea>
  <input type="submit">
</form> 

Output should be:

How to add HTML <textarea> name Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin