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

Lucy Brennan
Lucy Brennan
738 Points

Can't pass quiz question, but I see the preview is successful.

I'm in the 'How to build a website' course, section 'Creating HTML Content', sub section 'Organise with unordered lists' challenge 2 of 2. I can't pass this question, (yet the images are uploaded in preview?)

Quiz Question: 'Inside these three list items, add the following images, "numbers-01.jpg", "numbers-02.jpg" and "numbers-06.jpg. Leave alt attributes blank and don't add any captions or links".

Here is my code:

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

Moderator edit: Added Markdown to post so the code is in a readable format for the Community. Please refer to the Markdown Cheatsheet when posting code.

1 Answer

Daniel Bell
Daniel Bell
17,178 Points

It says leave alt blank and don't add links, but you have links on all of them. Maybe by leaving alt blank they meant don't put any alt attributes in the code?

Moderator Edit: Moved from Comments to Answers.

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

The alt="" are fine. But, you are correct in that the links cannot be there. Instructions are specific and need to be followed exactly. So, once the links are removed the code will pass.

:) :dizzy: