html paragraph center code example
Example 1: center p html
<p style="text-align: center">this is centered</p>
Example 2: how to center text in html
<p><center>YourText</center></p>
<p style="text-align: center">this is centered</p>
<p><center>YourText</center></p>