aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/html/element/body
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
commit074785cea106179cb3305637055ab0a009ca74f2 (patch)
treee6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-br/web/html/element/body
parentda78a9e329e272dedb2400b79a3bdeebff387d47 (diff)
downloadtranslated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz
translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2
translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip
initial commit
Diffstat (limited to 'files/pt-br/web/html/element/body')
-rw-r--r--files/pt-br/web/html/element/body/index.html232
1 files changed, 232 insertions, 0 deletions
diff --git a/files/pt-br/web/html/element/body/index.html b/files/pt-br/web/html/element/body/index.html
new file mode 100644
index 0000000000..5ce9c6e6c0
--- /dev/null
+++ b/files/pt-br/web/html/element/body/index.html
@@ -0,0 +1,232 @@
+---
+title: <body>
+slug: Web/HTML/Element/body
+tags:
+ - Elemento raiz
+ - Elemetos
+ - HTML
+ - Referências
+ - Seções
+ - Web
+translation_of: Web/HTML/Element/body
+---
+<p>{{HTMLRef}}</p>
+
+<p>O <strong>elemento </strong><code>&lt;body&gt;</code> do <strong>HTML </strong>representa o conteúdo de um documento HTML. è permitido apenas um <code>&lt;body&gt;</code> por documento.</p>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row"><a href="https://developer.mozilla.org/pt-BR/docs/Web/Guide/HTML/Categorias_de_conteudo">Categorias</a></th>
+ <td><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Sections_and_Outlines_of_an_HTML5_document#Sectioning_roots">Seção raiz</a>.</td>
+ </tr>
+ <tr>
+ <th scope="row">Conteúdo permitido</th>
+ <td><a href="https://developer.mozilla.org/pt-BR/docs/Web/Guide/HTML/Categorias_de_conteudo#Conte%C3%BAdo_de_fluxo">Conteúdo de fluxo</a>.</td>
+ </tr>
+ <tr>
+ <th scope="row"><dfn>Omissão de tag</dfn></th>
+ <td>
+ <p>A tag inicial pode ser omitida se a primeira coisa dentro do elemento não for um espaço, comentário, elemento {{HTMLElement("script")}} ou elemento {{HTMLElement("style")}}.</p>
+
+ <p>A tag final pode ser omitida se o elemento body possuir conteúdo ou tem uma tag inicial e não é imediatamente seguida por um comentário.</p>
+ </td>
+ </tr>
+ <tr>
+ <th scope="row"><dfn>Elementos pais permitidos</dfn></th>
+ <td>Deve ser o segundo elemento de um elemento {{HTMLElement("html")}}.</td>
+ </tr>
+ <tr>
+ <th scope="row">DOM interface</th>
+ <td>{{domxref("HTMLBodyElement")}}
+ <ul>
+ <li>O elemento <code>&lt;body&gt;</code>  expõe a interface {{domxref("HTMLBodyElement")}}.</li>
+ <li>Você pode acessar o elemento body através do atributo {{domxref("document.body")}}.</li>
+ </ul>
+ </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Atributos">Atributos</h2>
+
+<p>Estes elementos incluem os <a href="/en-US/docs/Web/HTML/Global_attributes">global attributes</a>.</p>
+
+<dl>
+ <dt>{{htmlattrdef("alink")}} {{obsolete_inline}}</dt>
+ <dd>Cor do texto para hyperlinks quando selecionados.  Esse método não está em conformidade, utilize a propriedade <em>{{cssxref("color")}} em conjunto com a pseudo-classe {{cssxref(":active")}} </em></dd>
+ <dt>{{htmlattrdef("background")}} {{obsolete_inline}}</dt>
+ <dd>URI de uma imagem para usar como um papel de parede. Esse método não está em conformidade, utilize a propriedade<em> CSS {{cssxref("background")}}.</em></dd>
+ <dt>{{htmlattrdef("bgcolor")}} {{obsolete_inline}}</dt>
+ <dd>Cor de fundo do documento. Esse método não está em conformidade, utilize a propriedade<em> CSS {{cssxref("background-color")}}.</em></dd>
+ <dt>{{htmlattrdef("bottommargin")}} {{obsolete_inline}}</dt>
+ <dd>The margin of the bottom of the body. Esse método não está em conformidade, utilize a propriedade<em> CSS {{cssxref("margin-bottom")}}.</em></dd>
+ <dt>{{htmlattrdef("leftmargin")}} {{obsolete_inline}}</dt>
+ <dd>The margin of the left of the body. Esse método não está em conformidade, utilize a propriedade<em> CSS {{cssxref("margin-left")}}.</em></dd>
+ <dt>{{htmlattrdef("link")}} {{obsolete_inline}}</dt>
+ <dd>Cor de textos de links não visitados. Esse método não está em conformidade, utilize o <em>{{cssxref("color")}} em conjunto com a pseudo-classe {{cssxref(":link")}}</em></dd>
+ <dt>{{htmlattrdef("onafterprint")}}</dt>
+ <dd>Função para chamar depois que o usuário solicitou a impressão do documento.</dd>
+ <dt>{{htmlattrdef("onbeforeprint")}}</dt>
+ <dd>Função para chamar quando o usuário solicita a impressão do documento.</dd>
+ <dt>{{htmlattrdef("onbeforeunload")}}</dt>
+ <dd>Função para chamar quando o documento está prestes a ser descarregado.</dd>
+ <dt>{{htmlattrdef("onblur")}}</dt>
+ <dd>Função para chamar quando o documento perde foco.</dd>
+ <dt>{{htmlattrdef("onerror")}}</dt>
+ <dd>Função para chamar quando o documento falha ao carregar corretamente.</dd>
+ <dt>{{htmlattrdef("onfocus")}}</dt>
+ <dd>Função para chamar quando o documento recebe foco.</dd>
+ <dt>{{htmlattrdef("onhashchange")}}</dt>
+ <dd>Function to call when the fragment identifier part (starting with the hash (<code>'#'</code>) character) of the document's current address has changed.</dd>
+ <dt>{{htmlattrdef("onlanguagechange")}} {{experimental_inline}}</dt>
+ <dd>Function to call when the preferred languages changed.</dd>
+ <dt>{{htmlattrdef("onload")}}</dt>
+ <dd>Função para chamar quando o documento terminar de carregar</dd>
+ <dt>{{htmlattrdef("onmessage")}}</dt>
+ <dd>Função para chamar quando o documento receber uma mensagem.</dd>
+ <dt>{{htmlattrdef("onoffline")}}</dt>
+ <dd>Função para chamar quando a conexão com a internet falha.</dd>
+ <dt>{{htmlattrdef("ononline")}}</dt>
+ <dd>Função para chamar quando a conexão com a internet é restaurada.</dd>
+ <dt>{{htmlattrdef("onpopstate")}}</dt>
+ <dd>Function to call when the user has navigated session history.</dd>
+ <dt>{{htmlattrdef("onredo")}}</dt>
+ <dd>Function to call when the user has moved forward in undo transaction history.</dd>
+ <dt>{{htmlattrdef("onresize")}}</dt>
+ <dd>Function to call when the document has been resized.</dd>
+ <dt>{{htmlattrdef("onstorage")}}</dt>
+ <dd>Function to call when the storage area has changed.</dd>
+ <dt>{{htmlattrdef("onundo")}}</dt>
+ <dd>Function to call when the user has moved backward in undo transaction history.</dd>
+ <dt>{{htmlattrdef("onunload")}}</dt>
+ <dd>Function to call when the document is going away.</dd>
+ <dt>{{htmlattrdef("rightmargin")}} {{obsolete_inline}}</dt>
+ <dd>The margin of the right of the body. <em>This method is non-conforming, use CSS {{cssxref("margin-right")}} property on the element instead.</em></dd>
+ <dt>{{htmlattrdef("text")}} {{obsolete_inline}}</dt>
+ <dd>Foreground color of text. <em>This method is non-conforming, use CSS {{cssxref("color")}} property on the element instead.</em></dd>
+ <dt>{{htmlattrdef("topmargin")}} {{obsolete_inline}}</dt>
+ <dd>The margin of the top of the body. <em>This method is non-conforming, use CSS {{cssxref("margin-top")}} property on the element instead.</em></dd>
+ <dt>{{htmlattrdef("vlink")}} {{obsolete_inline}}</dt>
+ <dd>Cor do texto para links já visitados. Esse método não está em conformidade, utilize a propriedade<em> CSS {{cssxref("color")}}  em conjunto com a pseudo-classe {{cssxref(":visited")}}.</em></dd>
+</dl>
+
+<h2 id="Especificações">Especificações</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Especificação</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comentário</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', 'sections.html#the-body-element', '&lt;body&gt;')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>Changed the list of non-conforming features.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'sections.html#the-body-element', '&lt;body&gt;')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td>Obsoleted the formerly deprecated attributes. Defined the behavior of the non-conforming and never standardized <code>margintop</code>, <code>marginleft</code>, <code>marginright</code> and <code>marginbottom</code>. Added the <code>on*</code> attributes.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML4.01', 'struct/global.html#h-7.5.1', '&lt;body&gt;')}}</td>
+ <td>{{Spec2('HTML4.01')}}</td>
+ <td>Deprecated the <code>alink</code>, <code>background</code>, <code>bgcolor</code>, <code>link</code>, <code>text</code> and <code>vlink</code> attributes.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilidade_dos_Browsers">Compatibilidade dos Browsers</h2>
+
+<p>{{CompatibilityTable}}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari (WebKit)</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>1.0</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ <tr>
+ <td><code>onlanguagechange</code></td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatGeckoDesktop("32")}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ </tr>
+ <tr>
+ <td><code>bottommargin</code>, <code>leftmargin</code>, <code>rightmargin</code>, <code>topmargin</code> {{obsolete_inline}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatGeckoDesktop("35")}} [1]</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Phone</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ <tr>
+ <td><code>onlanguagechange</code></td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatGeckoMobile("32")}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ </tr>
+ <tr>
+ <td><code>bottommargin</code>, <code>leftmargin</code>, <code>rightmargin</code>, <code>topmargin</code> {{obsolete_inline}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatGeckoMobile("35")}} [1]</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<p>[1] Was supported before this in Quirk Mode only.</p>
+
+<h2 id="Veja_também">Veja também</h2>
+
+<ul>
+ <li>{{HTMLElement("html")}}</li>
+ <li>{{HTMLElement("head")}}</li>
+</ul>