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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <fieldset> form Attribut

Dieser Artikel beschreibt die Verwendung der HTML-Attribute fieldset form, zeigt Beispiele zur Verwendung, Kompatibilität mit Browsern, Grammatikdefinitionen und detaillierte Informationen zu den Attributwerten.

 HTML <fieldset> Tag

Online-Beispiel

Der <fieldset>-Element, der sich außerhalb des Formulars befindet (aber dennoch Teil desselben ist):

!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Verwendung der HTML-Attribut <fieldset> form-Einführung(oldtoolbag.com)</title>
</head>
<body>
<form action="action_page.php" method="get" id="form1">
Was ist deine Lieblingsfarbe? <input type="text" name="fav_color"><br>
<input type="submit">
</form>
<p>Die folgenden Feldgruppen sind außerhalb des Formulars, gehören aber dennoch zum Formular./p>
<fieldset form="form1">
  <legend>Personalia:</legend>
  Name: <input type="text" name="username"><br>
  Email: <input type="text" name="usermail"><br>
</fieldset>
</body>
</html>
Test See ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Currently, only Opera supports the form attribute.

Definition and Usage

The form attribute in HTML specifies one or more forms that belong to the fieldset.

HTML 4.01 and HTML5differences between

form attribute in HTML5 new attribute in the.

Syntax

<fieldset form="form_id">

Attribute Value

ValueDescription
form_idSpecify a space-separated list of one or more form ids that belong to the fieldset.
 HTML <fieldset> Tag