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
Jesse Williams
3,949 PointsClass and ID Selectors Quiz
I'm stuck on the 4th question
Add an ID attribute with the value 'main' to the div element.
Not sure why this isn't passing???
<div class="main">
<p>
<em>Lorem ipsum dolor</em> sit amet, consectetur adipiscing elit. Nunc pulvinar consequat tortor, nec venenatis erat elementum scelerisque. Curabitur sit amet risus nisi. Aenean aliquet euismod augue at viverra. Ut varius arcu in lorem iaculis ullamcorper. Integer eu rutrum quam.
</p>
</div>
3 Answers
John W
21,558 Pointswell, instead of an id attribute, you added the class attribute ;)
Erik Montes
3,717 PointsJohn is correct. The class attribute is class="" and the id attribute is id="".
Jesse Williams
3,949 PointsAwesome thanks guys