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 Nenhuma.
- Conteúdo permitido Conteúdo Textual.
- 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
Atributos
Esse elemento apenas inclui os atributos globais.
Exemplos
Veja <form> para exemplos sobre <legend>.
Especificação
| Specification | Status | Comment |
|---|---|---|
| WHATWG HTML Living Standard The definition of '<legend>' in that specification. |
Living Standard | Definição do elemento legend |
| WHATWG HTML Living Standard | Living Standard | Sugestão da exibição pradrão dos elementos fieldset e legend |
| HTML5 The definition of '<legend>' in that specification. |
Recommendation | |
| HTML 4.01 Specification The definition of '<legend>' in that specification. |
Recommendation | (link) |
Compatibilidade de Navegadores
| Recurso | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Suporte básico | (Yes) | 1.0 (1.7 or earlier) | (Yes) | (Yes) | (Yes) |
| Recurso | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Suporte básico | (Yes) | 1.0 (1.0) | (Yes) | (Yes) | (Yes) |
Veja Também
- Outros elementos relacionados a formulários:
<form>,<option>,<label>,<button>,<select>,<datalist>,<optgroup>,<fieldset>,<textarea>,<keygen>,<input>,<output>,<progress>and<meter>.