Re: Quotes vs. Single Quote

From: Date: Fri, 06 Aug 2010 04:08:45 +0000
Subject: Re: Quotes vs. Single Quote
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-307334@lists.php.net to get a copy of this message
On Thu, Aug 5, 2010 at 8:51 PM, Adam Richardson <simpleshot@gmail.com> wrote: > Tim Bray, who knows a little bit about XML dialects (tongue in cheek), > appears to default to the single quote as his delimiter of choice: > http://www.tbray.org/ongoing/ Side note, looks like his stuff is auto-generated by something, so it's defined once and replicated many times for templating... but also I do see some attributes with double quotes mixed in, i.e.: <div class="employ">I work for Google, but the opinions expressed here are my own, and no other party necessarily agrees with them.<br/> A full disclosure of my professional interests is on the <a href='/ongoing/misc/Tim'>author</a> page. </div> <h2 id='comments'>Contributions</h2> <div class="comments"><p>Comment feed for <span class="o">ongoing</span>:<a href="/ongoing/comments.atom"><img src="/ongoing/Feed.png" alt="Comments feed"/></a></p> <a href="/ongoing/" onclick="setActiveStyleSheet('serif'); return false;" onkeypress = "setActiveStyleSheet('serif'); return false;" accesskey="p" id="serif">Serif</a> &#xb7; <a href="/ongoing/" onclick="setActiveStyleSheet('sans'); return false;" onkeypress = "setActiveStyleSheet('sans'); return false;" accesskey="p" id="sans">Sans-Serif</a> I should say also - double quotes helps when using inline JavaScript in attributes too :) add that to my reasons. I just default to double quotes because of history developing things, it just works easier.

« previous php.general (#307334) next »