center header html
snippet in html

center header html

user2589

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

how to center align the html element in css examples

user8416

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

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