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 trialLiz Jackman
902 PointsI cannot pass this challenge. I went back and checked the video. The code I'm using is below.
<ul>
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentation with color and texture.</p>
</a>
</li>
</ul>
Liz Jackman
902 PointsThanks!
Kenneth Love
Treehouse Guest TeacherAh, I see. I edited your first post to show all of the code.
4 Answers
nvcxnvkldsjaklfds
Courses Plus Student 5,041 PointsThe code challenge 1 is to create unordered list with three list item inside section element. You can do that like below.
<ul>
<li></li>
<li></li>
<li></li>
</ul>
The code challenge 2 to inset image element inside each list item.
<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>
The source of the images are sitting inside a folder called img. So I referenced them in src attribute.
I hope I answered your question.
Liz Jackman
902 PointsThank you! I have been trying that forever. I guess I needed to use img src and no </a>. Thank you!
Kenneth Love
Treehouse Guest TeacherThe code challenge wants you to just have the list items and the images, no captions or anything else.
Liz Jackman
902 PointsI also tried this with no success: <ul> <li><a href="img/numbers-01.jpg"></a></li> <li><a href="img/numbers-02.jpg"></a></li> <li><a href="img/numbers-06.jpg"></a></li> </ul>
Tristan Swartz
4,290 Pointsalthough it says ypu dont need the "alt" part you need it but it needs to be blank
Kenneth Love
Treehouse Guest TeacherKenneth Love
Treehouse Guest TeacherI don't see any code?