HTML5 <p> Tag


How to use the output element in a form:

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

Try it yourself »

Definition and Usage

The <p> tag defines a paragraph.

The p element automatically creates some space before and after itself. The space is automatically applied by the browser, or you can specify it in a style sheet.

Differences Between HTML 4.01 and HTML5

The align attribute, which was deprecated in HTML 4.01, is no longer supported in HTML5.

Tips and Notes

Tip: You should not use the <p> element when other elements are more appropriate.

Standard Attributes

The <p> tag also supports the Standard Attributes in HTML5.

Event Attributes

The <p> tag also supports the Event Attributes in HTML5.