1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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>
|