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
Wayne Collier
Courses Plus Student 1,399 PointsGlitch in "Creating Structure"
Having trouble with a maddeningly simple step.
Here is the challenge question:
"Add an id of 'featured-cupcake' to the 'div' you just created."
I have written the following. The only thing I have added on this step is the text : id="Featured Cupcake"
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Smells Like Bakin' Cupcake Company</title>
</head>
<body>
<div id="Featured Cupcake">
</div>
</body>
</html>
When I ask the system to check my work, it says
"Bummer! Did you put the 'id' attribute on the right element?"
I can't see anything I've done wrong. There is only one div element, and the system just confirmed that I created the div correctly.
Any tips?
6 Answers
Joseph Hall
10,865 Pointsit looks like you need to had a dash in between featured and cupcake, and lowercase your letters <div id="featured-cupcake"></div> When you have a space, that is telling the html that you are referencing two different id's for the div.
Joseph Hall
10,865 Points<div id="featured-cupcake>
Sharon Bratt
196 PointsThank you Joseph Hall, I got stuck there too!
Sharon Bratt
196 PointsThank you. I got stuck there too!
Sharon Bratt
196 PointsThank you. I got stuck there too!
Wayne Collier
Courses Plus Student 1,399 PointsThat was it. Thanks, Joseph! Odd how you can look right at something and not see the obvious.
Joseph Hall
10,865 PointsExcellent! Glad it helped :)
James Fredrick
1,756 PointsHi please help i'm doing the same obvious thing sorry to bother you but this is my code:
<div id="Featured Cupcake">
and then it says that I messed up task 1
James Barnett
39,199 Points@Raphael - Can you create a new thread and post your code in it.
Make sure indent each line of your code by 4 spaces so the forum will format it correctly.