0
excuse me I need a small help here ! here is a code ! <p align="center"> center attribute </p> And <p><center> center attribute</center></p> Are these codes similar ?
5 Réponses
+ 12
Yep, they are similar! the <center> tag was used in the code when there was no other standard to move the text to the center...now you can use align="center" which is more reliable and helps in writing a clean code!
+ 1
hmm Thank U so much @Dayve , It refers as a clean code then
0
Try running this code and see if the results are similar or not.
0
@Siesta Ur answer seems like finding a way under Google chrome
0
if you use center tag instead of align then whatever comes in between<center>
</center> will be centered.
if you want to set alignment for one tag align would be nice and you can set the content in left,right,center through align and there is no need to close it.