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

Hello, in the learn to make a website course im up to making the gallery and when i link my own img it doesn't work.

these images are downloaded from my computer at home opposed to the images Nick Pettit has provided for me to download. i dont know the problem but i think this is where it begins.

2 Answers

Mike Hickman
Mike Hickman
19,817 Points

Hi Angel,

Can you post your code on here for us to see? As long as your images from home are uploaded into the image folder in your workspace, you should be able to keep the same img src that Nick uses, as long as you are changing your file name.

<img src="img/your-image-file-name-here.jpg" alt="">

If you're doing all of that correctly and it still won't show, perhaps Workspaces only works with certain types of image formats? I'm not too sure.

Can you get Nick's images that are already in the Workspace to work correctly?

Good luck!

Mike

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Angel A. Done | Designer</title> </head> <body> <header> <a href="index.html"> <h1>Angel A. Done</h1> <h2>Designer</h2> </a>
<nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav>
</header> <section> <ul> <li> <img src="img/sketch-10.jpg" alt=""> </li> </ul> </section> <footer> <p>Ā© 2015 Angel A. Done.</p> </footer> </body> </html>

this is everything. i still have not tried Nicks pics So I am gonna go with that to complete the course. i would still love to get mine up there.

Mike Hickman
Mike Hickman
19,817 Points

Looks good. Yea, you might have to use his images to complete the course tasks/tests, but if you throw your sketch-10 image in the img folder on your workspace, that should at least show yours when you preview it.

Make sure to close your header after the closing nav tag, too.