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 trialkrupadawan
1,938 Pointsi have reviewed the video numerous times and am still not able to assign the class to the div element?
Please help i am completely at a loss as to where i am going wrong here in assigning the class to the div element in this challenge.
<body>
<h1>First Day of School</h1>
<form>
<div class="favourite_stuff">
<div>
<h4>Favorite Foods?</h4>
<input name="food[]">
<input name="food[]">
<input name="food[]">
<input name="food[]">
</div>
<div>
<h4>Favorite Animals?</h4>
<input name="animal[]">
<input name="animal[]">
<input name="animal[]">
<input name="animal[]">
</div>
</div>
</form>
</body>
3 Answers
krupadawan
1,938 PointsUltimately my roadblock turned out to be that I was spelling 'Favorite' as 'Favourite' due to my British sensibilities. After much deliberating my sanity I returned to the question to realise that the solution was an unexpected one. But it's a great learning curve to realise that the pitfalls I may face might not necessarily be coding related. Sometimes fresh eyes can remove the bias from a search. Thank you to Steven Parker for updating your response to reflect this for other users.
Steven Parker
231,269 PointsThe instructions say, "Give both <div> elements the class of "favorite_stuff"." But instead of giving that class to each of the two elements already on the page, you've added another element and given a class to that one.
Also, be sure to spell the class name as in the instructions. You wrote "favourite_stuff" here instead of "favorite_stuff".
krupadawan
1,938 PointsHi Steven, thank you so much for taking the time to reply. Ultimately my roadblock turned out to be that I was spelling 'Favorite' as 'Favourite' due to my British sensibilities. After much deliberating my sanity I returned to the question to realise that the solution was an unexpected one. But it's a great learning curve to realise that the pitfalls I may face might not necessarily be coding related. Sometimes fresh eyes can remove the bias from a search.
krupadawan
1,938 PointsAhh Steven Parker, what use is it to question ones sanity; if one cannot then merit from ones eureka through such torturous hours? Thank you again for updating your answer to reflect spelling if you would like me to change the answer to yours id be happy to.
Steven Parker
231,269 PointsI don't recall making any updates to my answer, what you see is how I submitted it. Feel free to mark the answer as you see fit.
Happy coding!