Text Content

HTML <p> element

Represents a paragraph. Contains phrasing content, such as text or strong. Browsers automatically close a paragraph before certain block-level elements. Do not place a div, heading, list or another paragraph inside p. Use CSS margins for spacing instead of empty paragraphs. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<p>Text</p>

Return Value

HTMLParagraphElement

Content model: Phrasing content, with element-specific restrictions.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>Reminder</title>  </head>  <body>    <p>      Bring your      <strong>ticket</strong>      today.    </p>  </body></html>
HTML Reference