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 trialKatie Voitsekhovsky
443 PointsOrdered Lists
The question in the quiz is to add "stop", "drop" and "roll" to the ordered list i have created. i have done so, it is stating i am incorrect and am unable to go to the next question
<!DOCTYPE html>
<html>
<head>
<title>HTML Lists Challenge</title>
</head>
<body>
<h1>HTML Lists Challenge</h1>
<!-- Write your code below -->
<ol>
<li>STOP</li>
<li>DROP</li>
<li>ROLL</li>
</ol>
</body>
</html>
3 Answers
tootiemcflow
5,601 PointsHey Katie Voitsekhovsky,
Try changing STOP, DROP, and ROLL to lower case letters with the first letter capitalized.
Katie Voitsekhovsky
443 PointsI just figured out the bug. It says create an ordered list but it really meant unordered.
as soon as i switched my code to this, it let me go through to the next question:
<!DOCTYPE html> <html> <head> <title>HTML Lists Challenge</title> </head> <body>
<h1>HTML Lists Challenge</h1>
<!-- Write your code below -->
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
</ul>
<ol>
<li>Stop</li>
<li>Drop</li>
<li>Roll</li>
</ol>
</body> </html>
Colin Marshall
32,861 PointsIt is not a bug, it correctly asks for an ordered list to begin with. Your original code did not pass because, as Robby Faller mentioned, you had your list items in all uppercase when only the first letter should have been capitalized. The second code you posted would have passed without the unordered list because you fixed the capitalization in the ordered list.
Katie Voitsekhovsky
443 PointsIve tried it all and had the Stop Drop and Roll exactly as it indicates. So it is case sensitive? It shouldn't matter in my opinion how items are put into code as long as the structure is correct. It also asks to "ADD" items. what it really means is REPLACE the first 2.
Colin Marshall
32,861 PointsYes, case matters. As you get further along you will have a better understanding of why. "STOP"
and "Stop"
are not the same thing in programming.
As for the challenge wording, you are misunderstanding what they are asking.
Task 1 of 6 asks you to Create an ordered list on the page. It does not ask you to add any list items to the list. All you need to add for this challenge is:
<ol></ol>
Task 2 of 6 asks you to Add the following list items to the ordered list: "Stop", "Drop", and "Roll". Now you add the list items:
<ol>
<li>Stop</li>
<li>Drop</li>
<li>Roll</li>
</ol>