Say I want to add a background image to something, I might write:
background: url(/images/button_bg.png) repeat-x scroll left bottom #146BAE
However, if I look at this code in Firebug, it will display the following:
background: url("/images/button_bg.png") repeat-x scroll left bottom #146BAE
Are the quotation marks around the image path significant in any way? Do they make it faster/more standards compliant, or does Firebug just do this to make the code a little easier to read?
I’ve also seen single quotes ( ‘ ‘ ) used too, I’m not sure if they’re any different?
They are significant if the path to that image contains non-alphanumeric characters or spaces.
It’s best to wrap the url with
"(quotes) or'(single quote). It isn’t a standard.