Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Jubert
2,307 PointsRegarding the quotation marks - does it matter whether the image file is "image.jpg" or 'image.jpg' ?
The code challenge would not let me advance when putting single quote markes (') , but the w3schools website says that single quote marks are fine. Which is correct?
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsHi Adam,
I was able to pass with single quote marks.
.box {
background: #387ABC url('img/mike.png') no-repeat;
}
Perhaps when you did the single quotes you didn't have the path or file name exactly right? It seems to be rare but sometimes people aren't able to pass with a correct answer and it sometimes takes a browser refresh.
To answer your question, both single and double quotes are fine.