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

Attribute Value Description
align left
right
center
justify
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;
}




Example

A demo showing how to use <p> tag.

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

Click to view the demo