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

HTML

Possible Typo on Stage 2, Challenge 2, Task 4

I am a little confused on this one. The title says "Add the items "About", "Cupcakes", and "Locations" to the unordered list."

But when I get it wrong it tells me "Bummer! Add three list elements to the ordered list."

First it tells me to add the items to the unordered list, then when I get it wrong, it tells me to add them to the ordered list?

This is what I have that is not correct for some reason.

<!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>About</li> <li>Cupcakes</li> <li>Locations</li> <ul>

</body> </html>

Please Help!

5 Answers

James Barnett
James Barnett
39,199 Points

We can't see your code, remember to indent each line of code by 4 spaces so the forum will correctly format it.


You also might want to think about remaining your post.

From the How to ask good questions on the forum thread

Use a Descriptive Title

Bad:

Help!!! I'm stuck with CSS on a code challenge

Good:

Build a simple website > Code Challenge: Using Classes - Step 2/3

This is what I see.

!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>About</li>
    <li>Cupcakes</li>
    <li>Locations</li>
  <ul>
  </body>
</html>
James Barnett
James Barnett
39,199 Points

@Donald - There are acutally 2 things going on here.

Firstly, you're right, there is a typo in the hint text, it should say unordered list.

Secondly, there's missing an angled bracket in the code you posted, which is why it isn't passing the code challenge step.


An easy way to spot missing brackets is to paste your code into a text editor with syntax highlighting.

If you don't have a favorite text editor, just use codepen.io, that way if you are still having issues you can share a link to your code on the forums and we can easily take a look at it.

Yep, it was the missing bracket. I overlooked it cause it still worked without the bracket on the second and third steps. Thanks for the help.

James Barnett
James Barnett
39,199 Points

@Donald - You're quite welcome.

As for why the code worked until that point, the code challenge grading engine only checks the code required for the current step (as well as all previous steps).