aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/html/element/span/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/html/element/span/index.html')
-rw-r--r--files/pt-br/web/html/element/span/index.html106
1 files changed, 106 insertions, 0 deletions
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: <span>
+slug: Web/HTML/Element/span
+tags:
+ - Elemento
+ - HTML
+ - Internet
+ - Rede
+ - Referencia
+ - Web
+translation_of: Web/HTML/Element/span
+---
+<h2 id="Summary" name="Summary">Resumo</h2>
+
+<p>O elemento <strong>HTML <code>&lt;span&gt;</code> é um conteiner generico em linha para conteúdo fraseado </strong>, que não representa nada por natureza. Ele pode ser usado para agrupar elementos para fins de estilo (usando os atributos <code>class</code> ou <code>id</code> ), ou para compartilhar valores de atributos como <code>lang</code>. Ele deve ser usado somente quando nenhum outro elemento semântico for apropriado. <code>&lt;span&gt;</code> é muito parecido com o elemento {{HTMLElement("div")}} , entretando  {{HTMLElement("div")}} é um elemento de nível de bloco enquanto <code>&lt;span&gt;</code> é um elemento em linha.</p>
+
+<h2 id="Usage_context" name="Usage_context">Contexto de Uso</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <td>Categorias de conteúdo</td>
+ <td><a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a></td>
+ </tr>
+ <tr>
+ <td>Conteúdo permitido</td>
+ <td><a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">Phrasing content</a></td>
+ </tr>
+ <tr>
+ <td>Omissão de Tag </td>
+ <td>Nenhum, deve ter tanto tag de início quanto tag final.</td>
+ </tr>
+ <tr>
+ <td>Elementos pai permitidos</td>
+ <td>Qualquer elemento que aceite <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content">phrasing content</a>, ou <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Flow_content">flow content</a>.</td>
+ </tr>
+ <tr>
+ <td>Padrões de documento</td>
+ <td><a class="external" href="http://www.w3.org/TR/html5/text-level-semantics.html#the-span-element" title='http://www.w3.org/TR/html5/text-level-semantics.html#the-span-element"'>HTML5, section 4.6.24</a>; <a class="external" href="http://www.w3.org/TR/html401/struct/global.html#edef-SPAN" title="http://www.w3.org/TR/html401/struct/global.html#edef-SPAN">HTML 4.01, section 7.5.4</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Attributes" name="Attributes">Atributos</h2>
+
+<p><span style="line-height: 21px;">Esse elemento inclui apenas os </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">a</a><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" title="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes">tributos globais</a><span style="line-height: 21px;">.</span></p>
+
+<h2 id="DOM_interface" name="DOM_interface">DOM interface</h2>
+
+<p>Este elemento implementa a interface <code><a href="/en-US/docs/HTMLSpanElement" title="HTMLSpanElement">HTMLSpanElement</a></code>.</p>
+
+<h2 id="Examples" name="Examples">Exemplos</h2>
+
+<pre class="brush:html;gutter:false">&lt;p&gt;&lt;span&gt;Some text&lt;/span&gt;&lt;/p&gt;</pre>
+
+<h3 id="Result" name="Result">Resultado</h3>
+
+<p><span>Some text</span></p>
+
+<h2 id="Especificações">Especificações</h2>
+
+<table>
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', 'semantics.html#the-span-element', '&lt;span&gt;')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-span-element', '&lt;span&gt;')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td>A interface com o DOM agora é {{domxref("HTMLSpanElement")}}.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML4.01', 'struct/global.html#edef-SPAN', '&lt;span&gt;')}}</td>
+ <td>{{Spec2('HTML4.01')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilidade_entre_os_navegadores">Compatibilidade entre os navegadores</h2>
+
+<div class="hidden">
+<p>A tabela de compatibilidade nesta página é gerada a partir de dados estruturados.<br>
+ Se você quiser contribuir para com os dados, por favor veja <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> e nos mande um <em>pull request</em>.</p>
+</div>
+
+<p>{{CompatibilityTable}}</p>
+
+<p>{{Compat("html.elements.span")}}</p>
+
+<h2 id="See_also" name="See_also">Veja também</h2>
+
+<ul>
+ <li>Elemento HTML {{HTMLElement("div")}}</li>
+</ul>
+
+<div>{{HTMLRef}}</div>