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 Introduction to HTML and CSS HTML Fundamentals HTML Images

muhammad mabrouk
muhammad mabrouk
110 Points

the code does not work and no image showing

Hello all,

When i tired to do the code exactly step by step as the tutor explained. it did not work after trying the two ways of codes .. was not showing any thing.. i did not know why and after i got helped from Chat JPT, it finally helped me to show it but i did not learn anything here. and I'm just curioes why there was a problem here ? the correct code i got from chat jpt was that ... <img src="../img/carbonara.jpg">

those are explained in the lesson and they did not work <img src="img/carbonara.jpg"/>

<img src="img/carbonara.jpg" alt="Spaghetti carbonara on a white plate on a gray marble table top" />

I just want to learn why those did not work even though they are correct thank you.

1 Answer

Steven Parker
Steven Parker
243,632 Points

Since "../img/carbonara.jpg" worked as the source value, that indicates that your folder organization differs slightly from the instructor's files shown in the video. That also explains why the video location does not work.

For future questions, take a look at this video about sharing a snapshot of your workspace. The snapshot allows the person helping to replicate your environment and more easily identify the issue.