--- title: '

: The Paragraph element' slug: Web/HTML/Element/p tags: - Contenuto di Raggruppamento HTML - Elemento - HTML - Riferimento - Web translation_of: Web/HTML/Element/p ---

{{HTMLRef}}

L'elemento HTML <p> rappresenta un paragrafo di un testo. I paragrafi sono di solito rappresentati in modalità visiva come blocchi di testo che sono separati da blocchi adiacenti da linee di spazio verticali e/o dalla prima linea di indentazione. I paragrafi sono elementi block-level.

Categorie di contenuto Contenuto di flusso, contenuto palpabile.
Contenuto permesso Frasi.
Tag omessi Il tag di partenza è richiesto. Il tag di fine può essere omesso se l'elemento {{HTMLElement("p")}} è immediatamente seguito da 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 un altro elemento {{HTMLElement("p")}}, o se non ci sono più contenuti nell'elemento genitore ed esso non è un elemento {{HTMLElement("a")}}.
Genitori permessi Qualsiasi elemento che accetta flow content.
Ruoli ARIA permessi Qualsiasi.
Interfaccia DOM {{domxref("HTMLParagraphElement")}}

Attributi

Questo elemento include i global attributes.

Note: L'attributo align sui tag <p> è obsoleto e non dovrebbe essere più usato.

Esempi

<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 the second paragraph.
 This is the second paragraph.
 This is the second paragraph.
 This is the second paragraph.</p>

Il risultato di questo codice è:

{{EmbedLiveSample('Esempi')}}

Specificazioni

Specificazione Stato Commenti
{{SpecName('HTML WHATWG', 'semantics.html#the-p-element', '<p>')}} {{Spec2('HTML WHATWG')}} Nessun cambiamento dall'ultima istantanea W3C {{SpecName("HTML5 W3C")}}
{{SpecName('HTML5 W3C', 'grouping-content.html#the-p-element', '<p>')}} {{Spec2('HTML5 W3C')}} attributo align è obsoleto
{{SpecName('HTML4.01', 'struct/text.html#h-9.3.1', '<p>')}} {{Spec2('HTML4.01')}} Definizione iniziale

Compatibilità con i Browser

{{Compat("html.elements.p")}}

Vedi anche