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 to the "article.html" page

Hello Community!

I am attempting to add the "vr-user" image to the "article.html" page, and it isn't working.

Here is my code:

<img src="img/vr-user.jpg" alt="Virtual reality user">

Where am I messing up at?

Thanks so much guys. :)

Never mind guys! I figured out it was because I was missing "../../"

Sean Flanagan
Sean Flanagan
33,235 Points

Thanks for sharing this Allison. I only had one "../" at the start of the file path. Now I know!

Thank you

Sean

1 Answer

Tomáš Komprs
Tomáš Komprs
14,057 Points

I had a same problem right now. Thanks! :)