How can you define the horizontal text CENTER alignment for an HTML5 element?
Explanation
The text-align property defines the horizontal text alignment for an HTML5 element.
Example:

<p style="text-align:center">Centered Text</p>
Pay attention. The <center> tag, supported in older versions of HTML, is not valid in HTML5.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback