HTML / HTML Tags

HTML <P> Tag

Oct 12, 2022
2 min read
HTML p Tag

Definition

The <p> tag represents a paragraph.

Example

<p>
  Lorem ipsum dolor sit, amet consectetur adipisicing elit. Cum doloribus
  vitae non neque enim dicta? Quas corporis ducimus possimus. Molestiae
  neque harum quo quia sint? Asperiores, debitis eius. Vel, nemo?
</p>
<p>
  Quos nam et aliquam dolore velit praesentium, tempora fugit dolorem
  laboriosam animi cumque ratione suscipit esse minus laborum molestiae aut
  cupiditate harum consectetur nisi necessitatibus magni? Dicta, accusamus.
  A, non?
</p>
<p>
  Ipsa accusamus tempore laboriosam aliquam ex nesciunt, eum fuga voluptatem
  est praesentium, illum repellat sequi nisi voluptatum amet quo iste?
  Obcaecati optio rerum cum aut. Rerum at commodi rem eius!
</p>

Usage

Attributes

The <p> element only supports the Global Attributes.

Best Practices

  • Assistive technology such as screen readers allows users the ability to skip to the next paragraph. Do not use empty <p> tags to add space between paragraphs, as this can cause issues for users using assistive technology.

Specification

Browser Support

Desktop

ChromeEdgeFirefoxIEOperaSafari
YesYesYesYesYesYes

Mobile

Android WebviewChrome AndroidFirefox AndroidOpera AndroidiOS SafariSamsung Internet
YesYesYesYesYesYes