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

<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
Keep exploring
HTML & CSS quizzes
Sign Up Now
or Subscribe for future quizzes