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 trialRobert Martin
19,154 PointsWhy aren't my images displaying when I preview my Workspace?
When I preview my code, the links display and I can click through to my images (and they display on the new page). However, unlike the video, my images don't display on my homepage with the links. Any ideas?
Andrea Faciane
10,042 PointsTry this first make sure you have the correct path. If the image folder is " img" src should reveal "img/fileName.jpg"
1 Answer
Isaac Asante
4,752 PointsHi Robert, your code should be like this:
<img src="img/nameofthefile.jpg" alt="Your alternate text">
Make sure:
1) Your HTML syntax is correct
2) Your image is well into the img folder, and that the file name you are using is correct
3) Your list tags containing the image are closed.
4) You save your Workspace (CTRL + S or Command + S) before previewing
Robert Martin
19,154 PointsThank your replies everyone, I ran Extract All from the zip folder and created the "img" folder inside the unzipped folder with the html file. Here is my code within the section.:
<ul>
<li>
<a href="img/numbers-01.jpg" alt="">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentation with colors and textures.</p>
</a>
</li>
<li>
<a href="img/numbers-02.jpg" alt="">
<img src="img/numbers-02.jpg" alt="">
<p>Playing with blending modes in photoshop.</p>
</a>
</li>
<li>
<a href="img/numbers-06.jpg" alt="">
<img src="img/numbers-06.jpg" alt="">
<p>Trying to create an 80's style of glows.</p>
</a>
</li>
<li>
<a href="img/numbers-09.jpg" alt="">
<img src="img/numbers-09.jpg" alt="">
<p>Drips created using photoshop brushes.</p>
</a>
</li>
<li>
<a href="img/numbers-12.jpg" alt="">
<img src="img/numbers-12.jpg" alt="">
<p>Creating shapes using repition.</p>
</a>
</li>
</ul>
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Robert,
Can you post your code please and we'll take a look?
This post should help with how to do that if required.
Thanks
-Rich