Paragraph <p> </p>

The <p></p> tags use for making new paragraphs. You can also define paragraph's alignment with align attributes. Align attribute has three values such as left, center and right. If you do not write align attribute then by default it remain left. Code


<html>
    <head>
    </head>
    <body>
        <p>
            Paragraph text
        </p>
    </body>
</html>
Output

Paragraph text

If you want to make alignment center of any paragraph so you can do it with the help of align attribute of <p></p> tag. Example is mentioned below:

Code

<html>
    <head>
    </head>
    <body>
        <p align='center'>
            Paragraph text
        </p>
    </body>
</html>
Output

Paragraph text

If you want to make alignment right of any paragraph so you can do it with the help of align attribute of <p></p> tag. Example is mentioned below:

Code


<html>
    <head>
    </head>
    <body>
        <p align='right'>
            Paragraph text
        </p>
    </body>
</html>


Output

Paragraph text