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

Resumo

+ +

elemento de divisão HTML <div> é um container genérico para conteúdo de fluxo, que de certa forma não representa nada. Ele pode ser utilizado para agrupar elementos para fins de estilos (usando class ou id), ou porque eles compartilham valores de atributos, como lang. Ele deve ser utilizado somente quando não tiver outro elemento de semântica (tal como {{HTMLElement("article")}} ou {{HTMLElement("nav")}}).

+ + + +

Atributos

+ +

Esse elemento inclui atributos globais.

+ +

No {{HTMLVersionInline(5)}}, o atributo align no <div> é  obsoleto {{obsolete_inline}}.

+ +

Exemplos

+ +
<div>
+  <p>Qualquer tipo de conteúdo aqui. Como &lt;p&gt;, &lt;table&gt;. Você dá o nome!</p>
+</div>
+
+ +

Resultado

+ +

Qualquer tipo de conteúdo aqui. Como <p>, <table>. Você dá o nome!

+ +

Especificações

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificaçãoStatusComentário
{{SpecName('HTML WHATWG', 'grouping-content.html#the-div-element', '<div>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'grouping-content.html#the-div-element', '<div>')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('HTML4.01', 'struct/global.html#h-7.5.4', '<div>')}}{{Spec2('HTML4.01')}} 
+ +

Compatibilidade dos navegadores

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support1.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

Veja também

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