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 trialAngela Rochester
185 PointsCupcake Image
We've placed an image named 'cupcake.jpg' in a directory named 'img'. Add the image to the body of the document.. I keep getting error that says double check your image path. Not sure what I'm missing.
2 Answers
John Steer-Fowler
Courses Plus Student 11,734 PointsHi Angela,
This error basically means that your img link is looking at the wrong source.
You might have something like this?:
<img src="cupcake.jpg" alt="I'm a sad cupcake...">
You might need to change it to something like this:
<img src="img/cupcake.jpg" alt="I'm a happy cupcake!">
In this example I am looking for the image source (src) in the img folder (img/) for an image called cupcake.jpg (img/cupcake.jpg)
Hope this helps :D
Angela Rochester
185 PointsThis is what it looks like:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head>
<body>
<img src="img.cupcake.jpg" alt="I'm a happy cupcake">
</body>
</html>
John Steer-Fowler
Courses Plus Student 11,734 PointsI can't see any of your HTML Angela,
Please refer to the 'Markdown Cheatsheet' for help on how to show your HTML in this discussion.