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

HTML

Smells 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

Your 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">

Hi 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.

Thank you to both of y'all for the help.