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 trial
Robert Johnson
734 PointsSmells Like Bakin IMG Directory
What is the image path suppose to be on this part of the learning exercise? I believe the rest of my work is correct.....Inside the body I have.... <img src="cupcake.jpg" alt="Smells Like Bakin">
3 Answers
Kevin Korte
28,149 PointsYour code isn't showing up…try putting it between four(4) ```` marks (next to the number one button).
But to answer your questions, you write relative file paths from where the file you are writing the path is, to the file or image you want. We use the "../" in a file path when we need to jump out of the folder we are currently in, and you can stack these like "../../" if you need to go back two folders. Than you just write your path, which could be something like
<img src="../img/myimage.jpg">
Melanie Day
5,540 PointsHi Robert,
For the exercise you are working on you will simply need:
<img src="img/name-of-the-image.jpg">
This should work for the way the folders are structured for that exercise.
Robert Johnson
734 PointsThank you to both of y'all for the help.