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!
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
Trevor Burke
6,693 PointsCode Challenge: Text editor task 2
First question has you place a <div></div> In the body Second question asks you to add an id of Featured-Cupcake to the div. My answer was <div id="Featured-Cupcake"></div> It says Bummer! are you sure you placed the id on the right element. I have tried different variation of featuredCupcakes. Always the same thing. Can anyone help?
3 Answers

Andrew Baisden
Courses Plus Student 5,132 PointsI think this is what you are looking for.
<body>
<div id="featured-cupcake"></div>
</body>

Ryan Young
6,094 PointsI second what Andrew posted. It's hard to know for sure without seeing the code, but to add a class or id to a <div> or any other element (p, a, h1, ul, span, etc.) you write the html element and then class/id followed by ="name".

Trevor Burke
6,693 Pointsyea. That's it. Im still not sure what was different. That's what I had typed. Thank You!