html <center> code example
Example 1: html center tag
<center>
<p>This is centered</p>
</center>
Example 2: centering in html
<style>
element
{
text-align: center;
}
</style>
-------------------------------------------------------------------------------
style.css
element
{
text-align: center;
}