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 Build a Simple Website Text Editors and HTML Images and Lists

Check work… Too many unordered lists… WHAAAAAAAA?

Im trying to add an unordered list.… when i hit the "check work" button it says i have too many items in my unordered list. below is a copy and paste of my code. It looks good to my… why can't i get past this step???? HELP

<!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 class="nav"> <li><a href="#">About</a></li> <li><a href="#">Contact</a><li> <li class="last"><a href="#">Locations</a></li> </ul> </body> </html>

9 Answers

Neil Northrop
Neil Northrop
5,095 Points

Jack,

Will you double check what you pasted in your post? It looks like there was suppose to be more.

Is there a trick to copying and pasting code? I am copying and pasting… I can see it, but when i hit "post comment" it disappears.

"""<!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 class="nav"> <li><a href="#">About</a></li> <li><a href="#">Contact</a><li> <li class="last"><a href="#">Locations</a></li> </ul> </body> </html>"""

<!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 class="nav"> <li><a href="#">About</a></li> <li><a href="#">Contact</a><li> <li class="last"><a href="#">Locations</a></li> </ul> </body> </html>

welp…. I am copying and pasting… but when you can't see it.. ha… it copy and pastes just fine… when i hit post answer, "Locations" is the last thing you can 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 class="nav"> <li><a href="#">About</a></li> <li><a href="#">Contact</a><li> <li class="last"><a href="#">Locations</a></li> </ul> </body> </html>"

Neil Northrop
Neil Northrop
5,095 Points

Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.

        ```html
        <p>This is code!</p>
        ```
Stephen Snowder
Stephen Snowder
3,932 Points

I got the same error to the same question, I think. The question only wants you to have exactly the number of items you need to answer the question. So delete any items you created that are not specifically requested by the scenario. I think you're supposed to have either two or three items. Do that and you should be good to go.

Back-ticks? What the hell are back-ticks? The back-tick is on the tilde (~) key on the upper left of your keyboard. I had to Google to find it not too long ago.

Pablo Litardo
Pablo Litardo
6,241 Points

Had this same problem a while back.... :D lol Forgot how I solved it, but believe me it solvable.