diff options
Diffstat (limited to 'files/de/web/html/element/legend/index.html')
-rw-r--r-- | files/de/web/html/element/legend/index.html | 97 |
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><legend></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><fieldset><br> + <legend>Geschlecht</legend><br> + <label for="man"><br> + <input type="radio" name="geschlecht" value="man"> Männlich</label><br> + <label for="woman"><br> + <input type="radio" name="geschlecht" value="woman"> Weiblich</label><br> + </fieldset></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", "<legend>")}}</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", "<legend>")}}</td> + <td>{{Spec2("HTML5 W3C")}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName("HTML4.01", "interact/forms.html#h-17.10", "<legend>")}}</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> |