"JavaScript Basics (Retired)" was retired on March 27, 2020.

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

Adding png image to html won't work

<img src="Logo.png" alt="Logo">

The images just won't show up, it's in a separate image folder, my code is correct but the images just won't display on the webpage, I am working on atom.

2 Answers

I'd have to see more of your code to know for sure, but if your images are in a separate image folder, like you said, you need to include that folder in your file path. For example, if you have a folder called images at the root of your project directory (the same level as your html), you would need to add images/ to the beginning of your src path:

<img src="images/Logo.png" alt="Logo">

Let me know if you're still having trouble!

Ahh of course, that worked. Thank you!

<img src=β€œimages/logo.png” alt=β€œlogo” /> Let me know if its working now.

greetings Mario

Thank you! That worked