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

Stephen Perez
Stephen Perez
4,229 Points

Img element: Usage challenge

I am confused as to why this Task is not passing. When challenged to: add image elements from the "img" folder into the list elements of an unordered list,with no paragraphs or links, when adding them as:

<nav>
  <li>
    <img src="img/numbers-01.jpg" alt"">
  </li>
(and two more similar list items)
</nav>

shows an error message saying "Task 1 no longer passing." This code works in my Workspaces, and the only thing added from the first part of the challenge is the <img> tag as requested. Not sure why this is causing the first task to fail. When I remove this <img> tag it repeats that "Task 1 no longer passing" which, as stated, is simply not true.

Rather than receiving an answer, can I have a better hint as to what is not working? Thanks very much!

Colton Fitzgerald
Colton Fitzgerald
15,815 Points

Can you share the code you used?

Stephen Perez
Stephen Perez
4,229 Points

Thanks for looking! I posted an updated try below

2 Answers

Sreng Hong
Sreng Hong
15,083 Points

I see you don't have an ul tags and also the attribute alt should have equal sign.

Stephen Perez
Stephen Perez
4,229 Points

Thanks Sreng. I must have been tired and missed that in my first example. Anyways I went and tried again to place three given images in the section element:

    <section>
      <nav>
        <ul>
          <li>
            <img src="img/numbers-01.jpg" alt="">
          </li>
          <li>
            <img src="img/numbers-02.jpg" alt="">
          </li>
          <li>
            <img src="img/numbers-06.jpg" alt="">
          </li>
        </ul>
      </nav>
    </section>

whereas in the task prior, the only thing not pictured here would be the image elements. Still not passing...It specifically directs me from using anchors or paragraphs for now.