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 trialRonnie McDowall
2,513 PointsProblems with the cupcake jpg
Hi, can't get past this challenge. It keeps telling me I have entered the wrong path. But I have no other info to enter other than what's in front of me. How do I access the img files?
Thanks
4 Answers
Jason Slabbers
4,447 PointsCan you add your code? So we can see how you approach the image.
Adam Sackfield
Courses Plus Student 19,663 PointsThe question is asking you to do the following "We've placed an image named 'cupcake.jpg' in a directory named 'img'. Add the image to the body of the document." So this is telling you the name of the image and the folder it is inside so the following code is required to link to that image
<img src="img/cupcake.jpg">
Ronnie McDowall
2,513 PointsThanks Adam, but I have already tried this and still get the same answer, beginning to wonder if the rest of my coding is correct, or maybe an incompatible editor or something.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<img src="img/cupcake.jpg">
</body>
</html>
Adam Sackfield
Courses Plus Student 19,663 PointsTry refreshing the browser, sometimes that is all that is needed to restart the code engine. Also try to keep your comments as comments to the person you are replying not as answers. Again I will add markdown for your code to be embedded correctly.
Ronnie McDowall
2,513 PointsThanks Adam, Nice to know there's help out there.
Adam Sackfield
Courses Plus Student 19,663 PointsAny time! :)
Ronnie McDowall
2,513 PointsRonnie McDowall
2,513 PointsOk, this is my text so far. Just wondering... the img file containing all the images. How can I download this? Thanks
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsRonnie McDowall I edited your post with the markdown to embed code in the forum.If you click edit above you will see how it is done.