<legend>
Resumo
O **Elemento HTML <legend> **(ou Elemento HTML Campo "Legend") representa um rótulo para o conteúdo do seu ancestral <fieldset>
.
- Categorias de Conteúdo (en-US) Nenhuma.
- Conteúdo permitido Conteúdo Textual (en-US).
- Omissão de Tag None, both the starting and ending tag are mandatory.
- Elementos ancestrais permitidos Um
<fieldset>
cujo primeiro filho seja esse elemento <legend> - Interface DOM
HTMLLegendElement
(en-US)
Atributos
Esse elemento apenas inclui os atributos globais (en-US).
Exemplos
Veja <form>
(en-US) para exemplos sobre <legend>
.
Especificação
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<legend>' in that specification. |
Padrão em tempo real | Definição do elemento legend |
HTML Living Standard | Padrão em tempo real | Sugestão da exibição pradrão dos elementos fieldset e legend |
HTML5 The definition of '<legend>' in that specification. |
Recomendação | |
HTML 4.01 Specification The definition of '<legend>' in that specification. |
Recomendação | (link) |
Compatibilidade com navegadores
BCD tables only load in the browser
Veja Também
- Outros elementos relacionados a formulários:
<form>
(en-US),<option>
,<label>
,<button>
,<select>
,<datalist>
,<optgroup>
,<fieldset>
,<textarea>
,<keygen>
,<input>
,<output>
,<progress>
and<meter>
.