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
Molly Morby
2,398 PointsAdd an ID attribute with the value main to the div element.
I can't figure out how to add a div element with the ID attribute to main. I even looked at somebody who had the same question but it still didn't help. Will someone please help me!
2 Answers
Tom Bedford
15,645 PointsHi Molly,
A div with an ID of content would look like:
<div id="content"></div>
A div with a class of sidebar would look like:
<div class="sidebar"></div>
Swap in whatever ID or class name you need!
Molly Morby
2,398 PointsThanks it really helped!