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

Code Example 1

<h1 align="center">This is heading 1</h1>

Code Example 2

#inner {
  width: 50%;
  margin: 0 auto;
}

# center text
.center {
  text-align: center;
  
border: 3px solid green;
}

Learn ReactJs, React Native from akashmittal.com