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 trialLuisa Langellotti
529 PointsError in the unordered list
"Add the items "About", "Cupcakes", and "Locations" to the unordered list."
What's wrong?
<!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" alt="yummy cupcake">
<ul class="nav">
<li><a href="#">About</a><li>
<li><a href="#">Cupcakes</a><li>
<li><a href="#">Locations</a><li>
</ul>
</body>
</html>
Larry Goodhue
4,246 PointsOh, and you're also supposed to end the <ul> tag with </ul>.
Larry Goodhue
4,246 PointsGrrr. Like this:
<li><a href="#">About</a></li>
<li><a href="#"Cupcakes</a></li>
<li><a href="#">Locations</a></li>
</ul>
7 Answers
Pablo Litardo
6,241 PointsCan you write in, how your typing the code.
Because unordered lists works like this'
<ul>
<li> About </li>
<li> Cupcakes </li>
<li> Locations </li>
</ul>
James Barnett
39,199 PointsLuisa Langellotti - The code challenge is asking you to create a list item with just the text, it doesn't mention anything about making that text a link. If you drop the <a>
element from each of them you should be good to go.
Jeff Busch
19,287 PointsHi Luisa,
We need some code here.
Jeff
Luisa Langellotti
529 PointsI'm feeling reeeeally dumb
Luisa Langellotti
529 Points<!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" alt="yummy cupcake"> <ul class="nav"> <li><a href="#">About</a><li> <li><a href="#">Cupcakes</a><li> <li><a href="#">Locations</a><li> </ul>
</body> </html>
James Barnett
39,199 PointsI edited your original post to fix the formatting on your code using markdown. To learn more about markdown check out this thread on how to type code in the forum for some examples.
Larry Goodhue
4,246 PointsLarry Goodhue
4,246 PointsLike this:
I also believe you're supposed to add the anchor tag right after each <li>.