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

How do I make my images show up in a new page on their own?

I followed the instruction in the video explaining the <a href=""> and how it connects to an image. But when I click on the image it goes into a 404. How do I fix this?

4 Answers

Can you paste your code?

it goes like

<a href="img/imagen.jpg"><img src="img/imagen.jpg" /></a>

Here's what I put in, but when I click on the actual images on the browser it doesn't take me to a new page with the image in it like it shows in the lesson. It takes me to an error 404.

<ul>
  <li>
    <a href="img/number-01.jpg">
      <img src="img/numbers-01.jpg" alt="">
      <p>Experimentation with color and texture.</p>
    </a>
  </li>
  <li>
    <a href="img/number-02.jpg">
      <img src="img/numbers-02.jpg" alt="">
      <p>Playing with blending modes in Photoshop.</p>
    </a>
  </li>
  <li>
    <a href="img/number-06.jpg">
      <img src="img/numbers-06.jpg" alt="">
      <p>Trying to create an 80's style of glows.</p>
    </a>
  </li>
  <li>
    <a href="img/number-09.jpg">
      <img src="img/numbers-09.jpg" alt="">
      <p>Drips created using Photoshop brushes.</p>
    </a>
  </li>
  <li>
    <a href="img/number-12.jpg">
      <img src="img/numbers-12.jpg" alt="">
      <p>Creating shapes using repitition.</p>
    </a>
  </li>
  </ul>

in which folder are the images?

the image folder called img