aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/html/element/legend/index.html
blob: ee512bfddbe6971d7248e0060be999faade5518f (plain)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
title: <legend>
slug: Web/HTML/Element/legend
tags:
  - Element
  - Elemento
  - Forms
  - HTML
  - Web
  - campos
  - conjunto de campos
  - formulários
  - rótulo
translation_of: Web/HTML/Element/legend
---
<h2 id="Resumo">Resumo</h2>

<p>O <strong>Elemento HTML <span style="font-family: Courier New;">&lt;legend&gt;</span> </strong>(ou <em>Elemento </em><em>HTML Campo "Legend"</em>) representa um rótulo para o conteúdo do seu ancestral {{HTMLElement("fieldset")}}.</p>

<ul class="htmlelt">
 <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Categorias de Conteúdo</a></dfn> Nenhuma.</li>
 <li><dfn>Conteúdo permitido</dfn> <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">Conteúdo Textual</a>.</li>
 <li><dfn>Omissão de Tag</dfn> {{no_tag_omission}}</li>
 <li><dfn>Elementos ancestrais permitidos</dfn> Um {{HTMLElement("fieldset")}} cujo primeiro filho seja esse elemento <span style="font-family: Courier New;">&lt;legend&gt;</span></li>
 <li><dfn>Interface DOM</dfn> {{domxref("HTMLLegendElement")}}</li>
</ul>

<h2 id="Atributos">Atributos</h2>

<p><span style="line-height: 21px;">Esse elemento apenas inclui os </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">atributos globais</a><span style="line-height: 21px;">.</span></p>

<h2 id="Exemplos">Exemplos</h2>

<p>Veja {{HTMLElement("form")}} para exemplos sobre <code>&lt;legend&gt;</code>.</p>

<h2 id="Specifications" name="Specifications">Especificação</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>Definição do elemento <strong>legend</strong></td>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'rendering.html#the-fieldset-and-legend-elements')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Sugestão da exibição pradrão dos elementos <code>fieldset</code> e <code>legend</code></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', 'forms.html#h-17.10', '&lt;legend&gt;')}}</td>
   <td>{{Spec2('HTML4.01')}}</td>
   <td><a href="http://www.w3.org/TR/html401/interact/forms.html#h-17.10" title="http://www.w3.org/TR/html401/interact/forms.html#h-17.10">(link)</a></td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Compatibilidade com navegadores</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Recurso</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Suporte básico</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop("1.0")}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Recurso</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Suporte básico</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoMobile("1.0")}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="Veja_Também">Veja Também</h2>

<ul>
 <li>Outros elementos relacionados a formulários: {{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>