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

Code Example 1

<div style="text-align:center">Dieser Text wird zentriert.
<p>Ebenso dieser Paragraph.</p></div>

Code Example 2

<center>Dieser Text wird zentriert.
<p>Ebenso dieser Paragraph.</p></center>

Code Example 3

To text align all yuo have to do this:
  .yournameforclass {
    background: #fff; //which does not have to be there
    text-align: center;
    width: 100%;  //all of this can be varied. Text align can be used in these forms: left, which is to the left, right, to the right of the screen
    height: 300px;

Code Example 4

<!-- use the center tag -->
  <!-- your code -->

Learn ReactJs, React Native from