The <center>
tag has been deprecated in HTML4 (and XHTML1) in favor of the CSS text-align
property, which can be applied to the <div>
element or to an individual <p>
.
For more info: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center
It is always better to separate the "code" (HTML) and the styles (CSS), so in any case, CSS is the way to go.