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 Organize with Unordered Lists

I have an image tag in the code ...

for some reason the challenge is "REMINDING" me to add an image tag with the path to the image ...

<li>
<a 
href="img/numbers-01.jpg">

<img 
src="img/numbers-01.jpg" 
alt="">
</a>
</li>

this is what I used in the workspace and it works and the images come up ...

I hand typed it out in the challenge ... to help memorization ... typed it out the same way ... and I got an error ...

went back through line by line ... its the same ...

went through it character by character ... its the same ...

still got an error ...

7 Answers

Kazimierz Matan
Kazimierz Matan
13,257 Points

What character did you use to make new lines within tags? Remember that tag elements should be separated by a space, not by new line.

I do that for clarity ... but I also set it up the in a single line ... and it still gave me an error ... I wish I could load screen shots of what I did ...

Im not sure what you mean by "WHAT CHARACTER" ... charset ??? its utf-8 ...

Kazimierz Matan
Kazimierz Matan
13,257 Points

By "what character" I meant what key you used to make a new line (Enter, etc.). But at the moment it does not matter anymore

enter

Kazimierz Matan
Kazimierz Matan
13,257 Points

Also remember to declare a type of list with "<ul>" opening tag and "</ul>" closing tag, "<li>" tags can't be used alone.

<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>Playing with blending modes in Photoshop.</p>
          </a>
        </li>



        <li>
          <a 
          href="img/numbers-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/numbers-09.jpg">

          <img 
          src="img/numbers-09.jpg" 
          alt="">
          <p>Drops created using Photoshop brushes.</p>
          </a>
        </li>



        <li>
          <a 
          href="img/numbers-12.jpg">

          <img 
          src="img/numbers-12.jpg" 
          alt="">
          <p>Creating shapes using repitition.</p>
          </a>
        </li>
      </ul>
    </section>

I left the p tags out ... that is just what I was working through before the quiz ...

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi nathaniel marquez,

The code challenge never asks you to add links or anchor elements. You only need the list with images. I pasted in your code snippet from your original post and removed the links, and it worked fine. :) I hope that helps!

smh ... I gotta start paying more attention ... ok ... thanks ... Kazimierz Matan & Nick Pettit for your input ...