How to center text/align text in HTML?


#1

Again, i dont know. Lol


#2

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


#3
<center>

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

</center>

#4

TBH asking Google is faster :wink:


#5

Don’t give Google the satisfaction. :wink: Hone in on a specific website that covers it all, like https://www.w3schools.com/html/default.asp


#6

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.


#7

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>