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

How do I access the img folder in code challenge HTML track?

Trying to figure out how to access the img folder or index folder in the coding challenge. Thanks

2 Answers

if an image file is located in a folder called img, you can access it like so:

<img src="img/imageName.png" >

Yes, but where, on the GUI, is the img folder?

there isnt one. You cant and dont need to see it. All you need to know is that its in a folder called img and what the name of the image file is. then when using an img tag you pass the path in as the src attribute. see my answer above for what your img tag should resemble.