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

jennifer ray
jennifer ray
7,875 Points

No URL link to pictures

Hi can anyone help me here is my code https://w.trhou.se/czm0o0hi79 when i click on link to see my work the picture does not come up if i click the small image it says no ULR link? I have it open in Chrome, the images are opening when I click on them and are definitely there so could it be a problem with my computer or is the code wrong?

3 Answers

Hi Jennifer,

The problem is in your html.

You have:

<a href="img/numbers-01jpeg">
         <img src="img/numbers-01jpeg"alt="">
           <p>experiment with color.</p>
      </a>

In both your href and src attributes you have "01jpeg" and that should be "01.jpg".

Fix both of those and you should be able to see the image.

Also, you don't have a space before your alt attribute. It might not cause any problems but your code will be easier to read with spaces around attributes.

<img src="img/numbers-01.jpg" alt=""> <!-- added space right before alt -->
jennifer ray
jennifer ray
7,875 Points

Thank you for your reply Jason, I changed 01jpeg to 01.jpeg and added the space after the alt but still no image and same message no ULR link?

You still have "jpeg". You have to remove the 'e' so that you have "jpg"

Try that and let me know if there are still problems.

jennifer ray
jennifer ray
7,875 Points

doh sorry works now many thanks :)