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
Michael Quirke
3,185 PointsText Editors & HTML course, issues w Code Challenge: 'Images and Lists'
I'm having trouble with task 4/4 of this code challenge.
This is my code for the particular task of adding About, Cupcakes & Locations to an unordered list.
<ul>
<li><a> href="#">About</a></li>
<li><a> href="#">Cupcakes</a></li>
<li><a> href="#">Locations</a></li>
</ul>
However each time I submit the code it keeps saying "Bummer! The first list item should be "About". I'm not sure if I'm missing something but I already have 'About' as the first list item, yet it won't recognize this. Any help on this would be greatly appreciated, thanks! PS. I also had the unordered list tag above the list where the code should be but it won't show up when this post is published for some reason?
5 Answers
James Barnett
39,199 Points@Michael -
<a> href="#">About</a>
The issue with your markup is that you, href is an attribute inside the <a> tag, so it should be <a href = "#"> instead.
Let us know if you have any more questions.
ecp
838 Points@Michael!
Gregory & James are right! If you have any questions or are having issues with the Code Challenge shoot me an email directly at help@teamtreehouse.com :)
Gregory Serfaty
37,140 PointsYou have a error in your code. You close the tag a before the href You code must be like this <a href ="#">.....</a> not <a> href ="#"> .....</a>
I hope you have help
Gregory
Ps: Sorry for my english but i am french
dxoxiifezd
19,729 PointsThis is the correct code:
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Cupcakes</a></li>
<li><a href="#">Locations</a></li>
</ul>
Michael Quirke
3,185 PointsHi Guys
Thanks all for the feedback, problem solved I finally got past the stage!
Thanks again
Michael