For non-html5:
<center>This text will be center-aligned.</center>
For html5, <center>tag is no longer available. Use css instead.
http://www.w3schools.com/tags/tag_center.asp
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_center_css
<center>This text will be center-aligned.</center>
For html5, <center>tag is no longer available. Use css instead.
<!DOCTYPE html>
<html>
<head>
<style>
h1 {text-align:center;}
p {text-align:center;}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
http://www.w3schools.com/tags/tag_center.asp
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_center_css