html for text centre 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>