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

Kelly Cooper
Kelly Cooper
1,592 Points

Images not loading

I can't figure out why my images won't load on the page. I've double checked the spelling and the path is correct, but it comes up as a little box with the alt text next to it ...here is my code:

<div>
  <img src="img/featured.jpeg" 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>

2 Answers

Martin Sole
Martin Sole
82,021 Points

Hi

Is this from following Guil's example in the video? if so it looks like the file extension in workspace is a jpg instead of a jpeg in the example.

Kelly Cooper
Kelly Cooper
1,592 Points

That's exactly it. Thank you!