The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Single or double quotes?
When I code in PHP, I pay close attention to single or double quotes.
But with CSS… does it matter?
I usually roll with doubles like this:
<div class="card"></div>
What say you?
Nope, doesn’t matter AFAIK.
What you do for consistency is up to you.
Only matters inasmuch as you’re better off using double-quotes where the string contains single-quotes, and vice-versa.
(And, I’m sure you’re aware, but your example is HTML, not CSS. Same answer for CSS.)
Sorry; didn’t mean it like that. Just wanted to make sure we were all talking about the same question. : )