Horje

How to add HTML <textarea> name Attribute with label Tag Part 2

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.


Browser Support

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">
<label for="text">Type</label><br>
<textarea rows="4" cols="50" name="comment">
Enter text here...</textarea>
<input type="submit">
</form>

Output should be:

How to add HTML <textarea> name Attribute with label Tag Part 2




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