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 Add Image Gallery Content

Janneke Polderman
Janneke Polderman
7,157 Points

Need help with my code, my pictures don't appear

Can someone tell me why the only picture that is shown is the Adobe one? And not the otherone? Did I miss a space, dot or something else?

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Janneke Polderman | Informatiespecialist </title> </head> <body> <header> <a href="index.html"> <h1>Janneke</h1> <h2>Informatiespecialist</h2> </a> <nav> <ul> <li><a href="index.html">software skills</a></li> <li><a href="over.html">over</a></li> <li><a href="contact.html">contact</a></li> </ul> </nav> </header> <section> <ul> <li> <a href="img/MSOffice-logo.png"> <img src="img/MSOffice-logo.png" alt=""> <p>Office</p> </a> </li> <li> <a href="img/CreativeCloud-icon.png"> <img src="img/CreativeCloud-icon.png" alt=""> <p>Adobe</p> </a> </li> <li> <a href="sw-database.jpg"> <img src="sw-database.jpg" alt=""> <p>Software databases</p> </a> </li> <li> <a href="content-database.png"> <img src="content-database.png" alt=""> <p>Content databases</p> </a> </li> <li> <a href="code.jpg"> <img src="code.jpg" alt=""> <p>Code</p> </a> </li> <li> <a href="cms.jpg"> <img src="cms.jpg" alt=""> <p>CMS</p> </a> </li>
</ul> </section> <p>Hier komen foto's</p> <footer> <p>Ā© Janneke</p> </footer> </body> </html>

2 Answers

At first glance you only have the "img/" prepended to "Office" and "Adobe". I am assuming you have a subfolder called "img", so all other images need to have the "img/" prepended as well, for example:

<img src="img/sw-database.jpg">

and not

<img src="sw-database.jpg">

That may explain why bottom four are not working. Why Office is not working may be down to a typo. Make sure your image file is definitely called "MSOffice-logo.png" and is definitely located within the "img" folder.

Janneke Polderman
Janneke Polderman
7,157 Points

Thanks, and you are absolutly right about the typo! (capital or small letters do make a difference ;))