WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <p> Tag


Example

A paragraph is marked up as follows:

<p>This is some text in a paragraph.</p>
Try it yourself »

More "Try it Yourself" examples below.


Definition and Usage

<p> Tags define paragraphs.

<p> The element automatically creates some white space before and after it. The browser adds these spaces automatically, or you can specify in the style sheet. The element automatically creates some white space before and after it. The browser adds these spaces automatically, or you can specify in the style sheet.


Browser Support

Element
<p> Yes Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

The align attribute is not supported in HTML5.


Attributes

Attribute Value Description
align left
right
center
justify
Not supported in HTML5.
. Deprecated. Please use style instead. Specifies the alignment of text in a paragraph.