+ 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.
4 odpowiedzi
+ 6
HTML is forgiving, but it's recommended to follow the rules in order to avoid conflicts.
+ 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.
0
there are something where you can't do that
0
the quotes are used to indicate the presence of a string. strings are used for text and not for numbers