<!-- various ways -->
<h1 id="one">Let's center this text as an example</h1>
<!-- here we can use three basic centering types -->
<!-- 1st one is <center></center> inside HTML -->
<center>
<h1>Let's center this text as an example</h1>
</center>
<!-- 2nd is the align='center' -->
<h1 align="center">Let's center this text as an example</h1>
<!-- 3rd one is in CSS where we use text-align: center; -->
<style>
#one {
text-align: center;
}
</style>
<!-- OR inside div -->
<div style="text-align:center">
<h1>Let's center this text as an example</h1>
</div>