aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/html/element/legend/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/de/web/html/element/legend/index.html')
-rw-r--r--files/de/web/html/element/legend/index.html97
1 files changed, 97 insertions, 0 deletions
diff --git a/files/de/web/html/element/legend/index.html b/files/de/web/html/element/legend/index.html
new file mode 100644
index 0000000000..9f31eac6cc
--- /dev/null
+++ b/files/de/web/html/element/legend/index.html
@@ -0,0 +1,97 @@
+---
+title: <legend>
+slug: Web/HTML/Element/legend
+translation_of: Web/HTML/Element/legend
+---
+<p>The <strong>HTML <code>&lt;legend&gt;</code> element</strong> represents a caption for the content of its parent {{HTMLElement("fieldset")}}.</p>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row"><a href="/en-US/docs/HTML/Content_categories">Inhaltskategorien</a></th>
+ <td>Keine.</td>
+ </tr>
+ <tr>
+ <th scope="row">Zugelassener Inhalt</th>
+ <td>Definiert eine Überschrift für einen Formularbereich welches durch ein Fieldset zusammengefasst wurde.</td>
+ </tr>
+ <tr>
+ <th scope="row">Tag Verwendung</th>
+ <td>Start-Tag und End-Tag notwendig.</td>
+ </tr>
+ <tr>
+ <th scope="row">Elternelemente</th>
+ <td>Legend kann nur innerhalb von fieldset stehen</td>
+ </tr>
+ <tr>
+ <th scope="row">Permitted ARIA roles</th>
+ <td> </td>
+ </tr>
+ <tr>
+ <th scope="row">DOM interface</th>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Attribute">Attribute</h2>
+
+<p>Dieses Element unterstützt die <a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" title="HTML/Global attributes">globalen Attribute</a>.</p>
+
+<h2 id="Examples">Examples</h2>
+
+<p>&lt;fieldset&gt;<br>
+             &lt;legend&gt;Geschlecht&lt;/legend&gt;<br>
+                     &lt;label for="man"&gt;<br>
+                             &lt;input type="radio" name="geschlecht" value="man"&gt; Männlich&lt;/label&gt;<br>
+                    &lt;label for="woman"&gt;<br>
+                              &lt;input type="radio" name="geschlecht"  value="woman"&gt; Weiblich&lt;/label&gt;<br>
+ &lt;/fieldset&gt;</p>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("HTML WHATWG", "forms.html#the-legend-element", "&lt;legend&gt;")}}</td>
+ <td>{{Spec2("HTML WHATWG")}}</td>
+ <td>Definition of the <code>legend</code> element</td>
+ </tr>
+ <tr>
+ <td>{{SpecName("HTML WHATWG", "rendering.html#the-fieldset-and-legend-elements")}}</td>
+ <td>{{Spec2("HTML WHATWG")}}</td>
+ <td>Suggested default rendering of the <code>fieldset</code> and <code>legend</code> elements</td>
+ </tr>
+ <tr>
+ <td>{{SpecName("HTML5 W3C", "forms.html#the-legend-element", "&lt;legend&gt;")}}</td>
+ <td>{{Spec2("HTML5 W3C")}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName("HTML4.01", "interact/forms.html#h-17.10", "&lt;legend&gt;")}}</td>
+ <td>{{Spec2("HTML4.01")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2>
+
+
+
+<p>{{Compat("html.elements.legend")}}</p>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>Others form-related elements: {{HTMLElement("form")}}, {{HTMLElement("option")}}, {{HTMLElement("label")}}, {{HTMLElement("button")}}, {{HTMLElement("select")}}, {{HTMLElement("datalist")}}, {{HTMLElement("optgroup")}}, {{HTMLElement("fieldset")}}, {{HTMLElement("textarea")}}, {{HTMLElement("keygen")}}, {{HTMLElement("input")}}, {{HTMLElement("output")}}, {{HTMLElement("progress")}} and {{HTMLElement("meter")}}.</li>
+</ul>
+
+<p>{{HTMLRef}}</p>