English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <textarea> form-Eigenschaft

<textarea> form-Eigenschaft legt fest, zu welchem eine oder mehreren Formularen das Textfeld gehört. Es ist ein HTML5 neue Eigenschaften.

 HTML <textarea> Tag

Online-Beispiel

Textfelder, die sich außerhalb des Formulars befinden (aber dennoch Teil desselben sind):

<form action="action_page.php" id="usrform">
  Name: <input type="text" name="usrname">
  <input type="submit">
</form>
<textarea name="comment" form="usrform">Enter text here...</textarea>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers except Internet Explorer support the form attribute.

Definition and Usage

The form attribute specifies one or more forms that the text area belongs to.

HTML 4.01 with HTML5differences

The form attribute is a feature of HTML5 with the new attribute.

Syntax

<textarea form="form_id">

Attribute Value

ValueDescription
form_idSpecify one or more form IDs that the text area belongs to, separated by spaces.
 HTML <textarea> Tag