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

Resumo

+ +

HTML texto preformatado (<pre>) é a tag utilizada para representar texto pré-formatado. Um texto dentro desse elemento é tipicamente exibido em uma fonte não proporcional da mesma maneira em que o texto original foi disposto no arquivo. Espaços em branco são mantidos no texto da mesma forma em que este foi digitado.  

+ +

Content categories Flow content, palpable content.

+ + + +

Atributos

+ +

Esse elemento apenas inclui atributos globais.

+ +

This element only includes the global attributes.

+ +
+
{{htmlattrdef("cols")}} {{non-standard_inline}}{{obsolete_inline}}
+
Contains the preferred count of characters that a line should have. It was a non-standard synonym of {{htmlattrxref("width", "pre")}}. To achieve such an effect, use CSS styling instead.
+
{{htmlattrdef("width")}} {{obsolete_inline}}
+
Contains the preferred count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS styling instead.
+
{{htmlattrdef("wrap")}} {{non-standard_inline}}
+
Is a hint indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS styling instead.
+
+ +

Exemplos

+ +
<!-- Um exemplo de código css -->
+<pre>
+body {
+  color:red;
+}
+</pre>
+
+ +

Resultado

+ +
body {
+  color:red;
+}
+
+ +

Especificações

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificaçãoStatusComentário
{{SpecName('HTML WHATWG', 'grouping-content.html#the-pre-element', '<pre>')}}{{Spec2('HTML WHATWG')}}Nenhuma mudança significante na {{SpecName("HTML WHATWG")}}
{{SpecName('HTML5 W3C', 'grouping-content.html#the-pre-element', '<pre>')}}{{Spec2('HTML5 W3C')}}Nenhuma mudança significante na {{SpecName("HTML4.01")}}
{{SpecName('HTML4.01', 'struct/text.html#h-9.3.4', '<dl>')}}{{Spec2('HTML4.01')}}Atributto cols obsoleto
+ +

Compatibilidade de navegador

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support1.0{{CompatGeckoDesktop("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
width{{CompatVersionUnknown}}
+ No layout effect
{{CompatGeckoDesktop("1.0")}}
+ Layout effect removed in {{CompatGeckoDesktop("29.0")}}
{{CompatVersionUnknown}}
+ No layout effect
{{CompatVersionUnknown}}
+ No layout effect
{{CompatVersionUnknown}}
+ No layout effect
cols{{CompatNo}}{{CompatGeckoDesktop("1.0")}}
+ Removed in {{CompatGeckoDesktop("29.0")}}
{{CompatNo}}{{CompatNo}}{{CompatNo}}
wrap{{CompatUnknown}}{{CompatGeckoDesktop("1.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
width{{CompatUnknown}}{{CompatGeckoMobile("1.0")}}
+ Layout effect removed in {{CompatGeckoMobile("29.0")}}
{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
cols{{CompatNo}}{{CompatGeckoMobile("1.0")}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
wrap{{CompatUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

Veja mais

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