0
How do I align text to the center in HTML ?
Hey guys new here and just learning HTML. I am currently on "HTML attributes" and learning to align text to the center of the screen using the tag. <p align="center" This is the text > </p>. Tried several times on the code playground sometimes copying exactly what it is in the example but the text just stays on the left hand side on the output screen. Can anyone help. Thanks Newbie
4 Respuestas
+ 1
the tag should be like that
<p align="center">This is the text</p>
not <p align="center"This is the text></p>
+ 1
<p align="center"> this is the text </p>
Have you tried like this? the way you wrote there, the text is inside the syntax and it's not correct
0
Ah found the problem. Cheers guys.
0
That's what I have
Still not working. Can other tags affect it?
Or it's not supported in HTML?