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 trialAaron Harrell
2,115 PointsHelp. what am I missing to get my photos to show on my site? This is a sample of my code
Here is a snippet of my code. what did I miss. I extracted and uploaded files.Thanks :)
<li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li>
1 Answer
Ash Scott
435 PointsCan you show us your full code? This code should work so I can only assume one of two things:
- You've uploaded the images to somewhere other than the folder called
img
- The file your HTML is in, isn't in the same folder as the
img
folder. For example, if your page is in domain.com/portfolio/index.html, and your img folder is at domain.com/img, then you need to add a/
to the start of the image source. Otherwise the browser is looking for an image in domain.com/portfolio/img.
If you have a link to the site I can take a look and tell you exactly what's wrong :)
Cheers, Ash
Aaron Harrell
2,115 PointsAaron Harrell
2,115 PointsThanks Ash, I mis-typed the file folder name. You rock!
Ash Scott
435 PointsAsh Scott
435 PointsYou're welcome, glad I could help :)
gurpal singh sidhu
1,294 Pointsgurpal singh sidhu
1,294 Pointshey same question here but i gave my folder a proper name but by image files are not opening with another page or we can say there is no link for the images i checked each line but i cant detect any problem