<center> tags in html code example
Example 1: html center tag
<center>
<p>This is centered</p>
</center>
Example 2: center header html
<h1 align="center">This is heading 1</h1>
<center>
<p>This is centered</p>
</center>
<h1 align="center">This is heading 1</h1>