apply center css html code example Example: how to center text in html <p><center>YourText</center></p>