0
I used <center> </center> out of curiosity instead if align="center". is it recommended to use the align?
4 odpowiedzi
+ 1
yes it is.Newer browsers might not understand that.It is somewhat depreciated or obsolete.
you could use CSS to style the object to the center using.
{text-align:center;}
+ 1
To centre a DIV we use aligne="center". And if we need to centre a Paragraph we use p{text-align:center}
+ 1
When u write <center></center> the browser must be taking it as a html tag as no such tag is present in the html thats why you must write it as align="center" then the browser will know that you want center alignment.
0
In HTML 5 the center tag is considered "depricated". Styling elements should stay within css. To center a text in css refer to the property "text-align".