P Tag Examples in HTML

Definition :

  • this is a tag which is meant for displaying the content in the form of a paragraph on the webpage
  • & nbsp stands for no breaking space

Program :

<html>

     <body>

                      <p align=”left”> Hello </p>

                                  <p> &nbsp; </p>

                                  <p align=”right”> Hello </p>

                                  <p> &nbsp; </p>

                                  <p align=”center”> Hello </p>

                                  <p> &nbsp </p>

                  </body>

</html>

Leave a Reply

Your email address will not be published. Required fields are marked *