align text center in p tag code example Example: center p html <p style="text-align: center">this is centered</p>