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

Code Challenge: HTML Lists: Stuck In A Loop

I complete the 1st task: create an ordered list and check my work. The system responds affirmatively and I proceed to the next task.

I complete the 2nd task: add Stop, Drop, and Roll to my ordered list. The system responds as follows and gives me an option to recheck my work. "Your unordered list has too many list items. Try removing some."

I recheck my work. The system responds as before.

I recheck my work. The system responds as before.

And so on. And so on.

17 Answers

James Barnett
James Barnett
39,199 Points

@Elizabeth -

The directions for the 2nd task are:

Add the following list items to the ordered list: "Stop", "Drop", and "Roll".


However the hint reads:

Your unordered list has too many list items. Try removing some.


For reference the directions for the 3rd task are:

Without deleting your previous code, create a new unordered list on the page.


This appears to be either, a typo in the hint text of the 2nd task or a bug in the test engine that shows the hint for the 3rd task during the 2nd task.

Hi Duke. Chris Mursheno here. I thought I was going insane with the same issue!! Did they ever resolve it for you because I've already used these as well as unordered lists on the job and never had an issue! I put in a issue request because I share your frustration.

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Duke,

Sorry you're having trouble. :( Can you post your code here? It would be helpful to see the code that you're submitting at each step. For example:

Step 1 looks like this:

<ul></ul>

Step 2 looks like this:

<ul>
 <li></li>
</ul>

You can post code in our forum by indenting each line by 4 space. See our "Markdown Cheatsheet" below the text area for details.

James Barnett
James Barnett
39,199 Points

Your HTML is perfectly valid however ...

The first task is to:

Create an ordered list on the page.

There's no mention in the instructions of adding Item 1 or Item 2 list items, which is why message informs you that you have added "too many list items" as there should only be 3 list items in the ordered list.

Also in the future, could you please post a link to the particular code challenge you are having trouble with.

James, what would be the point of creating an ordered list with empty items? Besides, the system accepted my response. So, if, as you allege, my response is faulty, why did the system accept it? Additionally, aren't you overlooking the system's response that my unordered list (of which there are none on the page) has too any items?

http://teamtreehouse.com/library/websites/html/lists/html-lists

Task 1 of 6: Create an ordered list on the page. I did that. I created an ordered list with 2 items: Item 1 and Item 2. The system was happy.

Task 2 of 6: Add the following list items to the ordered list: "Stop", "Drop", and "Roll". The operative word here is "add". I added, Stop, Drop, and Roll, after Item 1 and Item 2. The system responds inappropriately that my unordered list has too many items. The operative word here is "unordered". Note that there is no unordered list.

@Duke , James is right :D The first task only asks for an ordered list, but doesn't mention adding any list items "Item 1" or "Item 2". If you're still experiencing troubles with this code challenge, email me directly at help@teamtreehouse.com :) Could you include a screenshot of your code and a link to the code challenge? Thanks!

Elizabeth, if James is right, why did the system accept my response?

I already included the code and the link.

Because the Code Challenge only asked you to make a list for Task 1, which you did - but you also added list items it didn't ask you for. So even though you passed Task 1, once you got to Task 2 you could go no further until you removed the extra list items.

When the Code Challenge Task 2 asked you to add "Stop", "Drop", and "Roll" you did - but you also had "Item 1" and "Item 2" on the list. The Code Challenge didn't ask for those list items at any point when you started the code challenge, and asked you to remove the extra list items after you attempted to pass task 2 but couldn't :\

"Bummer! Your unordered list has too many list items. Try removing some."

Be sure to read the Bummer! hint and the Code Challenge Task carefully :)

Hope this helps! Email me if you need anything :) help@teamtreehouse.com

Elizabeth, you are asking me to read carefully. I now ask you to do the same.

The system responded that I had too many list items in an unordered list that didn't exist. Do you see the distinction between an ordered list and an unordered list?

Additionally, the system accepted my first response. You are telling me that my first response was wrong but the system told me that it was right. If you are right, then the system must be wrong. If the system is wrong, why is it telling me that it is right?

I respectfully suggest that you get an experienced quality assurance analyst aboard soonest.

James Barnett
James Barnett
39,199 Points

@Duke - Thanks for the bug report, about the hint in the 2nd tasks.


In the 1st step, the testing engine only checks to make sure that you have a valid unordered list. You did so the engine passes the first step.

In the 2nd step, the testing incorrectly shows a hint about unordered list which actually belong on the 3rd step not the second.

Thank you guys, getting the team to look into this for you. :)

James Barnett
James Barnett
39,199 Points

@Elizabeth - You are welcome as always.

Nicole Francesca Pagliaro
Nicole Francesca Pagliaro
2,249 Points

hi y'all. super confused as to what I'm missing here in order to move forward in the challenges: http://cl.ly/M4rM :(

Nicole Francesca Pagliaro
Nicole Francesca Pagliaro
2,249 Points

ugh. pre-emptive call for help—solved it on my own. sorry to waste time! love the product!

James Barnett
James Barnett
39,199 Points

@Nicole - I love it when I can answer my own questions ... it's like Ha! James 1 ... Code 0

Thanks this was a great help.

Task 1 of 6: Create an ordered list on the page.

<!DOCTYPE html>
<html>
  <head>
    <title>HTML Lists Challenge</title>
  </head>
  <body>

    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->
    <ol>
      <li>Item 1</li>
      <li>Item 2</li>
    </ol>


  </body>
</html>

System responds favorably and I advance to next task.

Task 2 of 6: Add the following list items to the ordered list: "Stop", "Drop", and "Roll".

<!DOCTYPE html>
<html>
  <head>
    <title>HTML Lists Challenge</title>
  </head>
  <body>

    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->
    <ol>
      <li>Item 1</li>
      <li>Item 2</li>
      <li>Stop</li>
      <li>Drop</li>
      <li>Roll</li>
    </ol>


  </body>
</html>

System responds as follows. Bummer! Your unordered list has too many list items. Try removing some.

Note: Tried this in IE 9, FF 17, and Opera 12 on both an XP and a Vista box.