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

General Discussion

Adding image gallery

Using Windows. This is what I input, but I only get image 1. What is missing ?? How do I get image 2, 6, 9, 12 ???

<ul> <li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt=""><p>Experimentation with color and texture.</p></a> </li> <li> <a href="img/numbers-02.jpg">
<img src="img/numbers-02.jpg" alt=""><p>Experimentation.</p></a></li> <li> <a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt=""><p>Experimentation with color and texture.</p></a></li> <li> <a href="img/numbers-09.jpg">
<img src="img/numbers-09.jpg" alt=""><p>Experimentation with color and texture.</p></a></li>

   <li>
     <a href="img/numbers-12.jpg">        
   <img src="img/numbers-12.jpg" alt="">           <p>Experimentation    with color and texture.          </p></a>         
  </li> 
  </ul>
</section>

10 Answers

Hello there Patrice,

<li>
<img src="img/numbers-2.jpg" alt="">
<img src="img/numbers-6.jpg" alt="">
<img src="img/numbers-9.jpg" alt="">
<img src="img/numbers-12.jpg" alt="">
</li>
            ```

Nino, You have saved me !!!! Now how do I put "best answer" out there for You !!!!

Hi Patrice,

No problem you are very welcome. I don't know it that is possible. But thank you very much!

It is a thing that "support" told me, but no idea how, it is supposed to give the helper points, for being there for a fellow student !!

You are welcome my friend! You can ask support if you want i would appreciate it! You can contact me anytime for HTML/CSS/Javascript related questions.

Thank You !!!

Nino, Here is the whole section challenge. I put in what you showed me, it did not work. I went back, revied video, put in what teacher put in, it did not work. This is exactly what I input !! What is wrong ???

<section> <ul> <li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p></a>

    <a href="img/numbers-02.jpg">        
   <img src="img/numbers-02.jpg" alt="">
      <p>Experimentation.</p></a>

    <a href="img/numbers-06.jpg">        
   <img src="img/numbers-06.jpg" alt="">
      <p>Experimentation with color and texture.</p></a>

    <a href="img/numbers-09.jpg">        
   <img src="img/numbers-09.jpg" alt="">
      <p>Experimentation with color and texture.</p></a>

   <a href="img/numbers-12.jpg">        
   <img src="img/numbers-12.jpg" alt=""> 
     <p>Experimentation with color and texture.</p></a>         
  </li> 
  </ul>
</section>

Hi Patrice,

First of all one A (anchor/link) attribute should never be an image. can you tell me which course/video you are looking now so i can take a look for a second?

Take a look:

    <a href="http://www.google.com">Google</a>   
    <p>Experimentation.</p>
    <img src="img/numbers-02.jpg" alt="">


    <a href="http://www.facebook.com">Facebook</a>   
     <p>Experimentation with color and texture.</p>
     <img src="img/numbers-06.jpg" alt="">

    <a href="URL">Link</a>     
    <p>Experimentation with color and texture.</p>
   <img src="img/numbers-09.jpg" alt="">

    <a href="URL">Link</a>     
    <p>Experimentation with color and texture.</p>
   <img src="img/numbers-02.jpg" alt="">

it's the HTML--- adding image gallery

Try the following:

   <section>
      <ul>
        <li>
          <a href="img/numbers-01.jpg">
            <img src="img/numbers-01.jpg" alt="">
            <p>Experimentation with color and texture.</p>
          </a>
        </li>
        <li>
          <a href="img/numbers-02.jpg">
            <img src="img/numbers-02.jpg" alt="">
            <p>Experimentation with color and texture.</p>
          </a>
        </li>
        <li>
          <a href="img/numbers-06.jpg">
            <img src="img/numbers-06.jpg" alt="">
            <p>Experimentation with color and texture.</p>
          </a>
        </li>
        <li>
          <a href="img/numbers-09.jpg">
            <img src="img/numbers-09.jpg" alt="">
            <p>Experimentation with color and texture.</p>
          </a>
        </li>
        <li>
          <a href="img/numbers-12.jpg">
            <img src="img/numbers-12jpg" alt"">
            <p>Experimentation with color and texture.</p>
          </a>
        </li>
      </ul>
    </section>

Nino, Thank you sooooo much. I really did figure it out before I saw this message ---- YES, me !!! I had my </a> and </li> on the same lines and then I had a line between each image. Once I put the </a> and </li> on seperate lines and deleted all my extra lines between each image --- IT Worked. I am so excited !!!! I have been trying so much this weekend, I am exhausted !!! Zipfile, download to zipfile -- open folder/ move images/ paste images--- and code them into the right sequence ---- really, I am just drained !!! Thank you, thank you, thank you !!!!

I am very glad and happy for you and thank you for the compliments! You are welcome any time! I wish you a great day/night. And i will see you next time. I am off to bed! take care!!!

I too, it's only 5:30pm where I live but I am DONE !!!!