0
So far I haven't seen any explanation on using quotations around certain words do you need to use quotations or not
quotations around code
3 Antworten
+ 3
Well, so you probably didn't look very much :P
To be short: quotation of attributes values of html tag elements is recommanded, even not ever necessary ( but in some case, it could be )...
Abstract example:
<tag attribute=5> is valid, but you must prefer <tag attribute="5">, whatever value is number or text, it will be stored as text...
Furthermore, quotation can be done with paired double or simple quote ( if you start with one, you must end with same ).
[ EDIT ]
@Torsten Fedder edit in his post complete my forgot of the case I wanted to explain ^^ ( thanks to him )
+ 2
@Performix Zum:
Yes, it work in case of no space in the value. But it's a good reflex to acquire to systematicly quote your attributes values ;)
0
Like <p align="center"> does the word center need to be in quotations (I'm asking because I was doing it without them and still works, until I saw examples) .... Thank you