how to center align text in html
snippet in html

how to center align text in html

user314

you just need to add this line of code in your tag(<p>; h1, h2, td etc):
  
<p align="center">sample text<p/>

how to center text in html

user5929

text-align: center;

center text in a html file

user4694

<tag class="" align='center'></tag>

align centre

user9577

.headerTwoDiv{
			margin:1% auto;
			margin-right: auto; margin-left: auto; width: 21%; 
			padding-top: 11px;
		}

align center html

user2776

<!-- use the center tag -->
<center>
  <!-- your code -->
</center>

how to center text in html

user8960

<p><center>YourText</center></p>