Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Salim Al-Harrasi
PLUS
Salim Al-Harrasi
Courses Plus Student 6,572 Points

Image Loading in HTML Workspace

Hello,

I need some help here please!

In the Basic HTML course, the images inserted in the code aren't opening on the view tap screen, and I'm positive that the tag is correct! I can only view them at the HTML folder by clicking.

I tried a PC and a Macbook with different browsers, but still not opening, and only the alt message is displayed.

https://w.trhou.se/ewj41gpnv4

Thank you, Salim

1 Answer

I just had a look at your code. I think I figured out what is going on and why your pictures are not showing up.

       <img scr="img/featured.jpg" alt="Virtual Reality user">  <!-- This is your code -->

      <img src="img/featured.jpg" alt="Virtual Reality user">  <!-- This is the code corrected. -->
<!-- It was just the image source "scr" is supposed to be "src". --> 

See if that fixes your image not showing issue. I find myself doing the same thing ^_^ Hope that helps.

  • Natsu
Salim Al-Harrasi
Salim Al-Harrasi
Courses Plus Student 6,572 Points

Thanks so much Natsu!

Yes! my problem resolved :)

I appreciate your help so much. Without your third comment, It would take me forever to figure out the difference between my code and yours hehehe :)

Thanks a lot Salim