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
Benjamin Laughman
7,026 PointsUnordered List Difficulty
I am working on one of the very first challenge sets in the "Web Design" track. I made my title, "Smells Like Bakin' Cupcake Company" and inserted my image, but then the next challenge question asks you to insert an unordered list after the image. My code after the image looks like this: '''html <body> ''' '''html <img src="img/cupcake.jpg" ''' '''html <ul> </ul> <body> ''' I'm not sure why it's not accepting this as an unordered list. It keeps telling me that I need to use a ul tag.
I also tried: ''html <body> '''
'''html <img src="img/cupcake.jpg" <ul> <li></li> <li></li> <li></li> </ul> </body> '''
And it doesn't like that either. I was fairly sure I was doing this correctly, but obviously there's an issue.
I'm also not very clear on whether the spacing or indenting or new lines really matters for code syntax. Maybe it does.
Any help would be greatly appreciated. Thanks!
Matheus Pazetti de Oliveira
Courses Plus Student 7,090 PointsPlease edit your message using Markdown Cheatsheet, otherwise it's not possible to see your code.
Benjamin Laughman
7,026 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"
<ul>
</ul>
</body>
</html>
` ` `
I also tried:
```html
<body>
<img src= "img/cupcake.jpg"
<ul></ul>
</body>
</html> ` ` `
and I also tried:
```html
<body>
<img src= "img/cupcake.jpg"
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</body>
</html> ` ` `
1 Answer
Jeremy Frimond
14,470 PointsBenjamin Laughman I entered it pretty much the same way you did and got the answer correct. I assume there is some small syntax error in your code that is causing it to fail. Either way here is the code:
<img src="img/cupcake.jpg"/>
<ul>
</ul>
</body> ```
Benjamin Laughman
7,026 PointsThank you! My problem was that I never closed my image line with the extra / >. Once I did that, it worked just fine! Thanks!!!
Stone Preston
42,016 PointsStone Preston
42,016 Pointslooks like your html code isnt showing up. to see how to post html code in the forum look at the markdown cheatsheet