HTML <textarea> form Attribute

❮ HTML <textarea> tag


<form action="action.php" id="form1">
  <input type="submit" value="Submit">

<textarea form="form1" name="textareaText">Hello world!</textarea>


The form attribute should be set to a string that corresponds to the idid of the <form> element that an interactive control such as a button is associated with.

This allows form elements in one form to trigger actions in others.

Standard Syntax

<textarea form="formId">...</textarea>

Browser Support


Attribute Values

Value Description
formId Specifies the ID of a <form> element in the element’s owner
❮ HTML <textarea> tag