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

CSS

Organize With Unordered List Question

On the second question, I keep getting a message saying that I need to add an image tag for the first photo, but I can't figure out what I've gotten wrong. Here's the 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>

4 Answers

The href attribute specifies the link's destination, an example, with a clickable image leading to the treehouse website. In others words, you souldn't have the path to the image inside the href attribute, but only inside the source attribute of your image.

 <a href="www.teamtreehouse.com"><img src="../imgs/logoTreehouse.png" alt="logo treehouse" title="go to treehouse"/></a> 

Got it. Thanks so much!

Hi John,

Without a link to the question it's a little bit of a guess but I think you may be adding more that required for the challenge. If it's the question I'm thinking of it only asks for the image tag and so the anchor tag isn't required.

Try removing the anchor (link) tags. As an example, where you have:

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

try changing this to:

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

You'll need to repeat this for the other two but hopefully that should resolve your issue.

-Rich

Thanks Rich! That was indeed the problem: I had more than I needed in the code.

No problem, glad you got it sorted :)

-Rich