+ 2

<p align="center"> This text is aligned to center </p> in the above code why center is written in double quotes.? I tried it without quotes and I still works.

4th Jun 2016, 2:18 PM
Bhushan Babar
Bhushan Babar - avatar
4 Respostas
+ 6
HTML is forgiving, but it's recommended to follow the rules in order to avoid conflicts.
4th Jun 2016, 3:17 PM
ZinC
ZinC - avatar
+ 5
I agree with ZinC, using it without quotes will work, but goes against XHTML rules, which is the future of the web. Even though it will work, it is strongly discouraged that you do it.
4th Jun 2016, 3:29 PM
Gabe Rust
Gabe Rust - avatar
0
there are something where you can't do that
9th Jun 2016, 5:39 PM
oktay karakiya
oktay karakiya - avatar
0
the quotes are used to indicate the presence of a string. strings are used for text and not for numbers
29th Jun 2016, 12:12 PM
Dan-Awoh Emmanuel
Dan-Awoh Emmanuel - avatar