[thelist] Quoted attibute values
John Kershaw
johnkershaw at email.com
Mon Jan 15 18:27:34 CST 2001
>Plus, it only takes a fraction of a second to add the quotes, and it makes
>your code more readable...
Here's something I've been meaning to find out: does it matter
whether I use single or double quotes?
I know the specs say either, but everyone (?) uses double quotes, and
when I'm echo'ing html tags from PHP, it's a darn sight easier to use
single quotes than escaped double ones:
a) echo "<img src='blob.jpg'>"; // better?
b) echo "<img src=\"blob.jpg\">"; // worse?
plus my html editor is a lot happier with a) than b)
Your thoughts?
John.
More information about the thelist
mailing list