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

CSS Bootstrap Basics Using Bootstrap Components Inline Navs and Dropdown Buttons

did not need to use <footer> in bootstrap?

How come this was done without needing <footer> ?

Just regular divs is enough? I dont see the use of using <header> or <main> as well when all can be made with Divs

Audrey Meier
Audrey Meier
9,878 Points

I have the same question. I don't know if this is a Bootstrap 4 vs 5 issue, but Bootstrap 5 definitely uses footers. I found a discussion here https://mdbootstrap.com/docs/standard/navigation/footer/.

1 Answer

Steven Parker
Steven Parker
231,248 Points

The more specialized element types are known as semantic elements. They convey a sense of meaning for their contents, which gets used by search engines and other web automation.

As a general rule, ordinary DIV elements should be used only when none of the semantic elements fit the situation.