0

I used <center> </center> out of curiosity instead if align="center". is it recommended to use the align?

27th Sep 2016, 11:31 AM
Jovanni Silagan
Jovanni Silagan - avatar
4 ответов
+ 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;}
27th Sep 2016, 1:18 PM
victor
victor - avatar
+ 1
To centre a DIV we use aligne="center". And if we need to centre a Paragraph we use p{text-align:center}
27th Sep 2016, 2:04 PM
Driss Baidou
Driss Baidou - avatar
+ 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.
27th Sep 2016, 2:56 PM
MUSTAFA PINJARI
MUSTAFA PINJARI - avatar
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".
7th Oct 2016, 7:00 PM
George HTz
George HTz - avatar