How to Center a Text in HTML

We can use the <center> tag or align attribute to center an image in HTML. The align attribute and <center> tag are not supported in HTML5. So, we can use CSS instead of align attribute and <center> tag.

Centered Text in HTML

<center>Centered Text</center> 
<div align="center>
    Centered Text
Centered Text
53700cookie-checkHow to Center a Text in HTML

Leave a Reply

Your email address will not be published. Required fields are marked *