Consistent use of double or single quotes in HTML
labs.kollegorna.se
Consistent use of double or single quotes in HTML
1–8 of 8 posts
Re: Consistent use of double or single quotes in HTML
#2Still, this will invariably lead to a few arguments behind closed doors:
- "We should obviously standardize on single quotes, since they're shorter than double quotes and save more space!"
- "Our site serves up dozens of pageviews a day – let's spend the next week scrubbing our markup for consistency!"
- "If you're using mixed quotes in your markup, you're Doing It Wrong!"
Re: Consistent use of double or single quotes in HTML
#3Re: Consistent use of double or single quotes in HTML
#4I totally agree about consistency though; I even take the minor performance hit when interpolation is unnecessary by using double quotes anyway so that all uses of double and single quotes are consistent
Re: Consistent use of double or single quotes in HTML
#5I think consistency makes code look nicer and perhaps a bit more readable, but lets not kid ourselves that this leads to any meaningful improvements.
Re: Consistent use of double or single quotes in HTML
#6Re: Consistent use of double or single quotes in HTML
#7The first thing that came to mind when reading the title of this post was Google Fonts. Maybe this is validation that I need to write that Chrome extension that comes to mind every time I'm copying that snippet.
Re: Consistent use of double or single quotes in HTML
#8I would view it as a "code smell" - if you aren't concerned about mixed single/double quote usage, then what ELSE aren't you concerned about?