How to center text/align text in HTML?


Again, i dont know. Lol


Well I only know the way that I do it when I do welcome messages which isn’t HTML…


To stop centering stuff, just add the end tag slash.



TBH asking Google is faster :wink:


Don’t give Google the satisfaction. :wink: Hone in on a specific website that covers it all, like


In my computer science class, we were told to look it up on w3schools first, THEN ask the teacher if we couldn’t find it. That’s how useful she views it as.

Or she’s just lazy and doesn’t want to teach us.


The <center> tag is obsolete - it could be removed with any browser update.

Better solution:

<p style="text-align:center">This line will be centered.<br>
And so will this line.</p>