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
Willie Prevolt Jr.
Courses Plus Student 622 PointsQuestion on adding an empty unordered list
Here's the questions:
Add an empty unordered list below the image
Here's my answer:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Smells Like Bakin' Cupcake Company</title>
</head>
<body>
<img src="img/cupcake.jpg"
<ul>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li class="last"><a href="#"></a></li>
</ul>
</body>
</html>
I don't see what I am missing can anyone help me with this because I don't see it.
5 Answers
James Barnett
39,199 PointsWillie - Your unordered list is not empty it has 4 <li> elements as it's children.
I also noticed you forgot to close your <img> element.
Willie Prevolt Jr.
Courses Plus Student 622 PointsMan your freaking Awesome!
Thanks a 100 times over James!
Warwick McLean
Courses Plus Student 194 PointsI had the same problem and James' highlighting the fact that the <img> tag was not closed solved my issue. It is interesting to note however that the video instructor also made that mistake. If we follow exactly then we end up with this error...
James Hughes
1,366 PointsI was stuck on this one too - the lesson doesn't close the IMG element. Thanks figured it out now, that's the error.
Angele Tiago
220 PointsI made the same mistake as well, and was stuck for a while until i checked this questions/answers, i close the img tag, it worked. Thank you :)