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 trialMax Bardus
11,794 PointsWhy do Speaker section and Schedule section don't have any div elements where they would be contained in?
It feels wrong.
2 Answers
Daniel Morel
2,957 PointsSorry for the late reply. The reason why it does not have it's own div is because is wrapped inside the <div class="container"> on the way top.
Jeff Sanders
Courses Plus Student 9,503 PointsA div is not semantic and really does nothing for your content unless you add classes for styling or other behavior. If you want to wrap your "Speakers" and "Schedule" section in semantic tags like main
or section
that will help you to organize your content better, but more importantly give more information about the structure of your page to users who use a screenreader.
Liam English
3,837 PointsLiam English
3,837 PointsHiya,
The Speaker and Schedule sections are already children of the first container div that we created.
My thoughts are that we do not need to create div's for them because we can use the existing container div that they are already inside as well as the BootStrap classes (text-center etc..) to achieve the positioning and style we want without using the extra mark up that more div elements would create.
The content they contain though (the images and information that we will add in the next video) will need their own rows and divs to align them properly on the page though.