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

Aurélien Boichat
Aurélien Boichat
1,214 Points

my image does not show up - please help

<div> <img src="img/featured.jpg"alt="virtual reality user">

<p>Virtual Reality is becoming well known as a form of entertainment, but it's 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>

<main>
<section>
  <h2>About this site</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vehicula metus in bibendum laoreet. Aenean libero est, egestas eu eros pretium, sodales iaculis est</p>
  <img src="img/vr-space.jpg"alt=" User experience space in VR">

</section>
    <section>
  <p>Email us at contactvrexperiences@gmail.com</p>
</section>
  </main>

Did you create an img folder and move your files like in the video?

3 Answers

Aurélien Boichat
Aurélien Boichat
1,214 Points

Yes i create an img folder and i move the differents files inside the img folder.

put a space between the alt tag and is the "img" directory in the root folder along with the html?

Your folder is probably a subfolder of another folder.

Try this:

<img src="MainFolder/SubFolder/FileName.jpg"alt=" User experience space in VR">

I don't know what you named your folders but this worked for me:

<img src="articles/img/featured.jpg" alt=" User experience space in VR">