Check out example codes for "center p html". It will help you in understanding the concepts better.

Code Example 1

<p style="text-align: center">this is centered</p>

Code Example 2

<p style="text-align:center;">Centered paragraph.</p>

Learn ReactJs, React Native from akashmittal.com