how to write a paragraph in center in html code example
Example 1: html how to center text
<p style="text-align:center;">Centered paragraph.</p>
Example 2: how to center text in html
<p><center>YourText</center></p>
<p style="text-align:center;">Centered paragraph.</p>
<p><center>YourText</center></p>