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

HTML

Front End Web Development Question-HTML

What is the difference between <header>, <footer> & <section> in html?

3 Answers

<!-- Think of the header tag as an introductory content or navigation links -->
<header>

<!-- footer tag hangs at the very bottom, mostly containing copyright information,
contact information, sitemap -->
<footer>

<!-- section tag is used when you want to separate content from other content
think of it as different story content holder 
For example, you might have 1 section tag that contains content about today's news
and you have a 2nd section tag containing content about tomorrow's news
In this case you would need to keep today's news away from tomorrow's news
you can achieve that by using the section tag
-->
<section>

Thank you!

β€œBest Answer”