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/span/index.html | 106 +++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 files/pt-br/web/html/element/span/index.html (limited to 'files/pt-br/web/html/element/span') diff --git a/files/pt-br/web/html/element/span/index.html b/files/pt-br/web/html/element/span/index.html new file mode 100644 index 0000000000..ce8c706f6c --- /dev/null +++ b/files/pt-br/web/html/element/span/index.html @@ -0,0 +1,106 @@ +--- +title: +slug: Web/HTML/Element/span +tags: + - Elemento + - HTML + - Internet + - Rede + - Referencia + - Web +translation_of: Web/HTML/Element/span +--- +

Resumo

+ +

O elemento HTML <span> é um conteiner generico em linha para conteúdo fraseado , que não representa nada por natureza. Ele pode ser usado para agrupar elementos para fins de estilo (usando os atributos class ou id ), ou para compartilhar valores de atributos como lang. Ele deve ser usado somente quando nenhum outro elemento semântico for apropriado. <span> é muito parecido com o elemento {{HTMLElement("div")}} , entretando  {{HTMLElement("div")}} é um elemento de nível de bloco enquanto <span> é um elemento em linha.

+ +

Contexto de Uso

+ + + + + + + + + + + + + + + + + + + + + + + + +
Categorias de conteúdoFlow content, phrasing content
Conteúdo permitidoPhrasing content
Omissão de Tag Nenhum, deve ter tanto tag de início quanto tag final.
Elementos pai permitidosQualquer elemento que aceite phrasing content, ou flow content.
Padrões de documentoHTML5, section 4.6.24; HTML 4.01, section 7.5.4
+ +

Atributos

+ +

Esse elemento inclui apenas os atributos globais.

+ +

DOM interface

+ +

Este elemento implementa a interface HTMLSpanElement.

+ +

Exemplos

+ +
<p><span>Some text</span></p>
+ +

Resultado

+ +

Some text

+ +

Especificações

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'semantics.html#the-span-element', '<span>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-span-element', '<span>')}}{{Spec2('HTML5 W3C')}}A interface com o DOM agora é {{domxref("HTMLSpanElement")}}.
{{SpecName('HTML4.01', 'struct/global.html#edef-SPAN', '<span>')}}{{Spec2('HTML4.01')}} 
+ +

Compatibilidade entre os navegadores

+ + + +

{{CompatibilityTable}}

+ +

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

+ +

Veja também

+ + + +
{{HTMLRef}}
-- cgit v1.2.3-54-g00ecf