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 How to Make a Website Creating HTML Content Structure the Image Gallery

Daniel Oviedo
Daniel Oviedo
2,812 Points

Structure the image gallery

I am following every single step when uploading the images in to my workspace and typing it correctly into my html doc. However, when I open and refresh the review it won't display the images. Does anybody have any suggestions or clues on why it does not display the images?

4 Answers

Patrick Vanegas
Patrick Vanegas
6,971 Points

Hey, Daniel! Make sure you are specifying the right path to "img/image-name-here-.jpg," and make sure you check your syntax. the proper line of code should be <img src="img/image-name.jpg" alt ="">.

Daniel Oviedo
Daniel Oviedo
2,812 Points

Thank you Patrick! I'll double check.

Daniel Oviedo
Daniel Oviedo
2,812 Points

I figured it out Patrick. Apparently the images weren't uploading correctly because I had to expand them by double-clicking on the folder in my Downloads documents before uploading them into the workspace, which is confusing to me ā€“ but got the preview to display the images at least hehehe.

Now I'm having problems with the facebook and twitter images. I uploaded them just as I did with the rests but the preview still won't display them. I already went through the syntax and didn't find any errors. I can't think of anything else. Is there anywhere else you think I should look?

Daniel Oviedo
Daniel Oviedo
2,812 Points

This is what I have in my footer:

<footer> <img src="img/twitter-wrap.jpg" alt="twitter Logo"> <a href="https://www.facebook.com/daniel.oviedo.6044"> <img src="img/facebook-wrap.jpg" alt="Facebook Logo"></a> <p>Ā© 2017 Daniel Oviedo</p> </footer>

I didn't add any link to twitter logo since I don't have an account. Please let me know if you see any mistakes.

Thanks