HTML Tag Reference - HTML tag <p>

This <p> element creates a paragraph.

Browser compatibility

<p> Yes Yes Yes Yes Yes

What's new in HTML5

The align attribute is deprecated in HTML5.


Attribute Value Description
align left
Not supported in HTML5.
Set the alignment of the text within a paragraph

Global Attributes

The <p> tag supports the Global Attributes in HTML.

Event Attributes

The <p> tag supports the Event Attributes in HTML.

Default CSS Settings

p {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;


A demo showing how to use <p> tag.

     <p>This is the first paragraph.</p>
     <p>This is the second paragraph.</p>
     <p>This is the third paragraph.</p>

Click to view the demo