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

Code Example 1

<html>
<head>
<style>
h1 {text-align: center;}
p {text-align: 
    center;}
</style>
</head>
<body>

<h1>This is a 
    heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Learn ReactJs, React Native from akashmittal.com