Widely available Use it for real paragraphs of prose instead of styling generic containers to look like paragraphs.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
1
12
1
1
18
1
DOM API

The HTMLParagraphElement interface provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating p elements.

1
12
1
3
18
1
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

HTML
<p>This is the first paragraph. Text content goes here.</p>
<p>This is the second paragraph. Margins are automatically set between paragraphs.</p>

Live demo

basic paragraph

P element in text paragraph to split.document. basicstructure.

PreviewFullscreen

ri-dtext / body textstyle

paragraph to class ri-dtext and body text block by.

PreviewFullscreen

paragraphinside. inlineelement

p middle to strong, em, a, code equal. inlineelement include.

PreviewFullscreen

Use cases

  • Body copy

    Wrap explanatory text, descriptions, and narrative content in paragraphs that can be styled consistently.

  • Readable long-form text

    Separate blocks of prose into digestible units rather than one large text container.

Cautions

  • Do not put block-level structural elements inside a paragraph; the element should contain paragraph content only.
  • Using multiple <br> elements for paragraph spacing is harder to maintain and less semantic.

Accessibility

  • Clear paragraph structure improves reading rhythm and helps screen readers pause content naturally.