HTML <p> Tag.


A paragraph is marked up as follows :

 <p>This is some text in a paragraph.</p> 
Execute Code

Definition and Usage

The <p> tag defines a paragraph.

Browsers automatically add some space (margin) before and after each <p> element. The margins can be modified with CSS (with the margin properties).

Browser Support

Element Chrome Internet Explorer Firefox Safari Opera
<p> Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

The align attribute is not supported in HTML5.


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

Default CSS Settings

Most browsers will display the <p> element with the following default values :

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