HTML Paragraph

The HTML <p> tag is used to define a paragraph on a webpage. Each text of a paragraph should go in between an opening <p> and a closing </p> tag. HTML <p> is a block tag, it adds an empty line before and after a paragraph.

AttributeDescription
align*To change the paragraph's alignment.
Values are left, center, right and justified. Default is left.
Syntax: use of p tag
<p align="center">This is a paragraph syntax with attribute align center.</p>

Example 1: Paragraph with all 4 alignments.

HTML Paragraph tag is block level element.