Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Single or double quotes?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #158187
    nixnerd
    Participant

    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?

    #158197
    Paulie_D
    Member

    Nope, doesn’t matter AFAIK.

    What you do for consistency is up to you.

    #158200
    __
    Participant

    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.)

    #158212
    __
    Participant

    Sorry; didn’t mean it like that. Just wanted to make sure we were all talking about the same question. : )

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.