From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/html/element/output/index.html | 123 +++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 files/pt-br/web/html/element/output/index.html (limited to 'files/pt-br/web/html/element/output') diff --git a/files/pt-br/web/html/element/output/index.html b/files/pt-br/web/html/element/output/index.html new file mode 100644 index 0000000000..333a6dd671 --- /dev/null +++ b/files/pt-br/web/html/element/output/index.html @@ -0,0 +1,123 @@ +--- +title: Output +slug: Web/HTML/Element/Output +tags: + - Elemento + - Formulário HTML + - HTML + - HTML5 + - Internet + - Rede + - Referencia + - Web +translation_of: Web/HTML/Element/output +--- +

Sumário

+ +

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údoFlow content, phrasing content, listed, labelable, resettable form-associated element.
Conteúdo permitidoPhrasing content.
Omissão de tagPrecisa ter ambas as tags de início e fim.
Documento normativoHTML5, section 4.10.15
+ +

Atributos

+ +

Como qualquer elemento HTML, este elemento suporta os global attributes.

+ +
+
{{ htmlattrdef("for") }}
+
Uma lista de IDs de outros elementos, indicando que estes elementos contribuiram com valores de entrada (input) para o cálculo (ou outros afetados).
+
{{ htmlattrdef("form") }}
+
O elemento form ao qual este elemento está associado (seu "proprietário do formulário"). O valor do atributo deve ser um ID de um elemento form no mesmo documento. Se este atributo não está especificado, o elemento output deve ser descendente de um elemento form. Este atributo permite que você coloque elementos output em qualquer lugar em um documento, não apenas como descendentes de seus elementos form.
+
{{ htmlattrdef("name") }}
+
O nome do elemento.
+
+ +

Interface DOM

+ +

O elemento implementa a interface HTMLOutputElement .

+ +

Exemplo

+ +
<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>
+
+ +

Compatibilidade

+ +

{{CompatibilityTable}}

+ +

{{Compat("html.elements.output")}}

+ +
+ + + + + + + + + + + + + + + + + + + +
RecursoChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suporte básico10{{ CompatGeckoDesktop("2.0") }}1011nightly
+
+ +
+ + + + + + + + + + + + + + + + + + + +
RecursoAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Suporte básico{{ CompatUnknown() }}{{ CompatGeckoDesktop("2.0") }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+ +

Veja também

+ +

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") }}.

+ +
{{ HTMLRef }}
+ +
{{ languages({"en":"en/HTML/Element/output", "fr":"fr/HTML/Element/output", "ja":"ja/HTML/Element/output" }) }}
-- cgit v1.2.3-54-g00ecf