Answers for "how to write H1 in center in html."

2

how to center an h1 in html

<style>
h1 {
  text-align: center;
}

h2 {
  text-align: left;
}

h3 {
  text-align: right;
}
</style>
/* or you can do inlne
<h1 align="center">Example</h1>
Posted by: Guest on December-20-2020

Browse Popular Code Answers by Language