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 HTML Basics Images, Text and Links Adding Images to the Page

Adding an image

My page shows a placeholder instead of the image. Not sure what is wrong.

<div> <img src="img/featured.jpg"> <p>Virtual Reality is becoming well known as a form of entertainment, but it is also finding its way into fields like education, industrial design, healthcare and so much more!</p> <a href="https://teamtreehouse.com/vr" target="_blank">Start Your VR Journey</a> </div>

1 Answer

Is your folder called img in the same folder as the page you are editing?

you may need to step back a step if, for example, your img folder is in the folder before the one you're in now?

ex: src="../img/featured.jpg"

Thanks, that worked. I was pointing to the incorrect folder.