From 4b1a9203c547c019fc5398082ae19a3f3d4c3efe Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:15 -0500 Subject: initial commit --- files/ca/web/html/element/p/index.html | 148 +++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 files/ca/web/html/element/p/index.html (limited to 'files/ca/web/html/element/p/index.html') diff --git a/files/ca/web/html/element/p/index.html b/files/ca/web/html/element/p/index.html new file mode 100644 index 0000000000..a70e51f84c --- /dev/null +++ b/files/ca/web/html/element/p/index.html @@ -0,0 +1,148 @@ +--- +title:

+slug: Web/HTML/Element/p +tags: + - Element + - HTML + - HTML grouping content + - Reference + - Web +translation_of: Web/HTML/Element/p +--- +

{{HTMLRef}}
+ +

L'element HTML <p> (o element HTML Paràgraf ) representa un paràgraf de text. Els paràgrafs solen estar representats en els mitjans visuals com a blocs de text que estan separats dels blocs adjacents per un espai en blanc vertical i/o una sagnia de primera línia. El paràgraf ha d'estar tancat al final del text utilitzant el format "<p> text </ p>" per col·locar el text entre el paràgraf. Els paràgrafs són elements de bloc.

+ + + + + + + + + + + + + + + + + + + + + + + + +
Categories de contingutContingut dinàmic, contingut palpable.
Contingut permèsPhrasing content.
Omissió de l'etiquetaL'etiqueta d'inici és obligatòria. L'etiqueta final es pot ometre si l'element {{HTMLElement("p")}} és seguit immediatament per un {{HTMLElement("address")}}, {{HTMLElement("article")}}, {{HTMLElement("aside")}}, {{HTMLElement("blockquote")}}, {{HTMLElement("div")}}, {{HTMLElement("dl")}}, {{HTMLElement("fieldset")}}, {{HTMLElement("footer")}}, {{HTMLElement("form")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("header")}}, {{HTMLElement("hr")}}, {{HTMLElement("menu")}}, {{HTMLElement("nav")}}, {{HTMLElement("ol")}}, {{HTMLElement("pre")}}, {{HTMLElement("section")}}, {{HTMLElement("table")}}, {{HTMLElement("ul")}} o una altra element {{HTMLElement("p")}}, o si no hi ha més contingut en l'element primari i l'element pare no és un element {{HTMLElement("a")}}.
Elements pares permesosQualsevol element que accepti contingut dinàmic.
Interfície DOM{{domxref("HTMLParagraphElement")}}
+ +

Atributs

+ +

Aquest element inclou els atributs globals.

+ +

L'atribut align a <p> és obsolet. No el feu servir.

+ +

Exemple

+ +
<p>This is the first paragraph of text. This is the first paragraph of text.
+  This is the first paragraph of text. This is the first paragraph of text.</p>
+
+<p>This is second paragraph of text. This is second paragraph of text.
+   This is second paragraph of text. This is second paragraph of text.</p>
+
+ +

Això genera:

+ +

{{EmbedLiveSample('Example')}}

+ +

Notes

+ +

Per canviar els espais entre els paràgrafs, utilitzar la propietat CSS {{cssxref("margin")}}. No introduir elements paràgrafs buits o {{HTMLElement("br")}} entre ells.

+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', 'grouping-content.html#the-p-element', '<p>')}}{{Spec2('HTML WHATWG')}}Cap canvi des de l'última presentació W3C {{SpecName("HTML5 W3C")}}
{{SpecName('HTML5 W3C', 'grouping-content.html#the-p-element', '<p>')}}{{Spec2('HTML5 W3C')}}l'atribut align està obsolet
{{SpecName('HTML4.01', 'struct/text.html#h-9.3.1', '<p>')}}{{Spec2('HTML4.01')}}Definció inicial
+ + + +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Suport bàsic1.0{{CompatGeckoDesktop("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Suport bàsic{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

Veure

+ + -- cgit v1.2.3-54-g00ecf