--- title: Output slug: Web/HTML/Element/Output tags: - Elemento - Formulário HTML - HTML - HTML5 - Internet - Rede - Referencia - Web translation_of: Web/HTML/Element/output ---
O elemento de saída (<output>) é um elemento no qual um site ou aplicativo pode injetar os resultados de um cálculo ou o resultado de uma ação do usuário.
Categorias de conteúdo | Flow content, phrasing content, listed, labelable, resettable form-associated element. |
Conteúdo permitido | Phrasing content. |
Omissão de tag | Precisa ter ambas as tags de início e fim. |
Documento normativo | HTML5, section 4.10.15 |
Como qualquer elemento HTML, este elemento suporta os global attributes.
O elemento implementa a interface HTMLOutputElement .
<form oninput="result.value=parseInt(a.value)+parseInt(b.value)"> 0<input type="range" name="b" value="50" />100 +<input type="number" name="a" value="10" /> = <output name="result"></output> </form>
{{CompatibilityTable}}
{{Compat("html.elements.output")}}
Recurso | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Suporte básico | 10 | {{ CompatGeckoDesktop("2.0") }} | 10 | 11 | nightly |
Recurso | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Suporte básico | {{ CompatUnknown() }} | {{ CompatGeckoDesktop("2.0") }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} |
Outros elementos relacionados ao form: {{ HTMLElement("form") }}, {{ HTMLElement("input") }}, {{ HTMLElement("button") }}, {{ HTMLElement("datalist") }}, {{ HTMLElement("legend") }}, {{ HTMLElement("label") }}, {{ HTMLElement("select") }}, {{ HTMLElement("optgroup") }}, {{ HTMLElement("option") }}, {{ HTMLElement("textarea") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("progress") }} and {{ HTMLElement("meter") }}.