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

<div id> tag not working in challenge

Hello,

I have searched high and wide but am not able to determine what I might be doing wrong.

The challenge asks me to create an id of "featured cupcake" to the div I just created. Below is the code that I have entered that is being rejected. I have tried different spacings, re-checked my work, compared it to successful code on the previous workshop but still it fails. Any suggestions or nudges in the right direction would be appreciated. I have just provided the part of the code that is in question. It is in the following post.

3 Answers

Scott Kipfer
Scott Kipfer
10,348 Points

Spaces are not allowed

<div id="feature-cupcake"></div>

Here is the code:

    <div id="featured cupcake">

    </div>

  </body>
</html>

@Scott Kipfer

D@mmit. Thanks...

(Shaking my head)

Scott Kipfer
Scott Kipfer
10,348 Points

instead of creating another answer you can hit "Reply to this" and it will comment directly to my post without adding another answer.

My bad. I was on my mobile device and didn't see it but I do now.

Much thanks again.

Scott Kipfer
Scott Kipfer
10,348 Points

No worries.... Happy Coding!