Name
p — HTML 4.01 | HTML5
Synopsis
<p> . . . </p>
Denotes a paragraph. Paragraphs may contain text and inline
elements, but they may not contain other block elements, including
other paragraphs. Browsers are instructed to ignore multiple empty
p
elements.
Start/End Tags
HTML: Required/Optional; XHTML: Required/Required
Attributes
Core, Internationalization, Events, HTML5 Global Attributes
align="center|left|right"
Deprecated. Not in HTML5. Aligns the text within the element to the left, right, or center of the page.
Example
<p>
Paragraphs are the most rudimentary elements of a text document.</p>
<p>
They are indicated by the <code>p</code> element.</p>
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.