How to align text to center
Do not use center tag and align attribute, they are deprecated since hrml4. Use css to align text to center. display: block; text-align: center
Or you can use the center tag <center> </center>
you can just use align=“center” attribute in almost any tag
If in html,you can use <p text align="center">
<p text align="center" >text<p>
How can I get text on my website to align to center? I tried the css display: block and text-align:center but it does not seem to do anything for me. Thanks.