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
anilkomal
3,621 PointsImage is not appearing in "Structure the image gallery" section of How to make a website.
The code I am using is <img src="img/numbers-01.jpg" alt="">
I have also added the file: numbers-01.jpg in the IMG folder just as Nick does in the video.
However instead of the image displaying, I just get a very small box.
Can some one please help as i'm not sure what i'm doing wrong>
Thanks
1 Answer
Christopher Johnson
2,069 PointsThe small box means that it can't find the image you're referencing. Usually this is because you've specified the wrong file path or you've mis-spelled the name or you've typed something in the incorrect case. In the text you've wrote above, you've said the image is in the IMG folder, but you've typed img/ - if the folder is in uppercase, you will need to type the folder name in uppercase in your file path too.
anilkomal
3,621 Pointsanilkomal
3,621 PointsThanks Christopher for the quick response.
That was the error, i have now changed the folder name to lower case img and also in the code and it now works.
Thanks so much cant believe I didnt realise that.