Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Bootstrap Basics Responsive Layouts With the Bootstrap Grid Styling Content

Max Bardus
Max Bardus
11,794 Points

Why do Speaker section and Schedule section don't have any div elements where they would be contained in?

It feels wrong.

Liam English
Liam English
3,837 Points


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.

2 Answers

Sorry 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.

A 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.