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

Html Code Challenge!

Hi: Just started to learn html a few hours ago. I can't get past the code challenge where it asks you to Add an empty unordered list below the image. I do just that by typing <ul> and nothing happens. It still says it is wrong.

I also tried <ul></ul> and still nothing. Can anyone help a novice? I have spent the last 30 mins on this.

Cheers

13 Answers

Post up your code. I will see if I can be of help

Hey. Thanks sooo much.

The Challenge: Add an empty unordered list below the image.

<!DOCTYPE HTML>
<html>
  <head>
    <title>Smells Like Bakin' Cupcake Company</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  </head>

  <body>
    <img src="img/cupcake.jpg"
    <ul>

  </body>
</html>

[[ed. note]] Added markdown to fix formatting

If you press the space bar 4 times and then paste in your code you will get that grey box that separates your code from the rest of your post and won't cut off the rest of your code.

Okay. Will try that. Thanks for the hint!

novice J - You didn't close your ul tag.

Hi James:

I believe I tried that as well. So, I did <ul></ul> and it still tells me it is wrong. Tried it on the same line, different line, indent etc etc and still nothing.

So I moved on and will sort it out at a later time, hoping to find a solution.

<ul></ul>
Hey guys seems I'm having the same issue also how do i post my html in this forum and have it post correctly
<!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>

Click on the markdown cheatsheet link below the comment box for info on entering code.

<!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>

<!DOCTYPE HTML>
<html>
<head>
<title>Smells Like Bakin' Cupcake Company</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>

<body>
<img src="img/cupcake.jpg">
<ul></ul>

</body>
</html>

Thanks Jason I had tried that before and didn't seem to work but it did now so thanks again

No worries.