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 ?

13th Apr 2017, 6:13 AM
ZilliAn
5 Antworten
+ 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!
13th Apr 2017, 6:16 AM
Dev
Dev - avatar
+ 1
hmm Thank U so much @Dayve , It refers as a clean code then
13th Apr 2017, 6:22 AM
ZilliAn
0
Try running this code and see if the results are similar or not.
13th Apr 2017, 6:17 AM
Tafsir
Tafsir - avatar
0
@Siesta Ur answer seems like finding a way under Google chrome
13th Apr 2017, 6:20 AM
ZilliAn
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.
30th Apr 2017, 5:35 PM
avinash Fav
avinash Fav - avatar