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.
Attribute | Description |
---|---|
align* | To change the paragraph's alignment. Values are left, center, right and justified. Default is left. |
<p align="center">This is a paragraph syntax with attribute align center.</p>
Example 1: Paragraph with all 4 alignments.