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
I'm having trouble linking images with the img src tag.
I don't seem to be able to link imgs correctly and I can't figure out what the issue is. I have a root folder named info and two subfolders named css and img. Within the img subfolder I have two images I'm trying to link named leaf.jpg and trichomes.jpg. I got these imgs off google images and they aren't working, but images from treehouse's downloads are? Is it the images or my code? The code I'm using is
<section> <ul> <li><img src="img/trichomes.jpg" alt="sorry image isn't available"> </li> <li><img src="img/indicaleaf.jpg"></li> <li></li> </ul> </section> help would be greatly appreciated ty
Are you certain that the images are .jpg? Check the file extensions: right click => properties => should be right under the name..
also: make sure that the index.html is in the root folder. If it isn't then the src extensions are wrong.
if that isn't it, include entire index.html in troubleshoot.
Just see if you haven't misspelled a name or something, this could possibly happen.