Horje

How to add HTML <textarea> form Attribute

It is A text area located outside a form (but still a part of the form).

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The textarea form attribute</h1>

<form action="/action_page.php" id="usrform">
  Name: <input type="text" name="usrname">
  <input type="submit">
</form>
<br>
<textarea rows="4" cols="50" name="comment" form="usrform">
Enter text here...</textarea>

<p>The text area above is outside the form element, but should still be a part of the form.</p>

</body>
</html>

Output should be:

How to add HTML <textarea> form Attribute




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