English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<textarea> form-Eigenschaft legt fest, zu welchem eine oder mehreren Formularen das Textfeld gehört. Es ist ein HTML5 neue Eigenschaften.
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 ‹/›
IEFirefoxOperaChromeSafari
All major browsers except Internet Explorer support the form attribute.
The form attribute specifies one or more forms that the text area belongs to.
The form attribute is a feature of HTML5 with the new attribute.
<textarea form="form_id">
Value | Description |
---|---|
form_id | Specify one or more form IDs that the text area belongs to, separated by spaces. |