HTML <p> Paragraph Tag Reference

The p HTML tag means paragraph, and it denotes a paragraph of text.

Use it for most of your main body content in your articles or web pages.

The <p> HTML/xHTML tag

The <p> tag is used to display a paragraph of text in a document. It's a block-level element, which means any following elements will be displayed on another line.

When to use the <p> tag (semantic use)

You should use the <p> tag to divide your text into paragraphs, and not for any other purpose.

It's valid in all current versions of HTML and xHTML, and it should always have a closing </p> tag.

Example of <p> tag use

Note how the <p> tag ignores line-breaks and spaces in the code.

<p>This is a paragraph of text</p>

<p>This    is

another

paragraph

of      text</p>

The Output

This is a paragraph of text

This is another paragraph of text