HTML provides the <center>
tag in order to center different elements like text, button, link, etc. The <center> tag is supported in HTML4 but not supported in HTML5. This means when the <center> tag is used in an HTML5 page it does not make the specified elements centered.
<center> Tag Syntax
The <center> tag has the following regular HTML syntax where the elements need to be centered are put between <center> and </center>.
<center>ELEMENT</center>
Center HTML
The <center> tag can be used a lot of different HTML elements to center them in the following example we center HTML elements like text, header, paragraph, and div.
<center>WiseTut</center>
<center><h1>WiseTut</h1></center>
<center><p>WiseTut</p></center>
<center><div>WiseTut</div></center>

Center Text
Text can be centered by using the <center> tag like below.
<center>I</center>
<center>like</center>
<center>WiseTut</center>

Center Header
Headers can be centered like below.
<center><h1>WiseTut</h1></center>
<center><h2>WiseTut</h2></center>
<center><h3>WiseTut</h3></center>

Center Paragraph
The <center> tag can be used to center the HTML paragraph.
<center><h1>WiseTut</h1></center>
<center><h2>WiseTut</h2></center>
<center><h3>WiseTut</h3></center>
Center Div
Divs can be centered with the <center>
tag like below.
<center><div>WiseTut</div></center>