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 Introduction to HTML and CSS (2016) HTML: The Structural Foundation of Web Pages and Applications The Basic Structure of a Web Page

Muhammad Ali Rizwan
seal-mask
.a{fill-rule:evenodd;}techdegree
Muhammad Ali Rizwan
Full Stack JavaScript Techdegree Student 606 Points

how to split the body in segments? like the way you have <header> <main> <footer> etc. Are these any standard segments?

why do we need to split the body into segments? are there any standard segment names or is that just for neatness?

3 Answers

Keith Kelly
Keith Kelly
21,326 Points

Splitting the page into segments allows you to manipulate different content in different ways with css and javascript. HTML5 has many standard tags for different types of content beyond just the header, main, and footer tags. I think those ones are used in the video because that is a common (not standard) way to break up the page.

Here is a list of the available HTML tags: HTML5 tag reference

Luc de Brouwer
seal-mask
.a{fill-rule:evenodd;}techdegree
Luc de Brouwer
Full Stack JavaScript Techdegree Student 17,939 Points

You don't necessarily have to use the HTML5 tags to divide a webpage into different sections, you can choose to use <div>'s and style them through CSS, altough I recommend using the HTML5 tag's if you're new to the language

Sarah Dillon
Sarah Dillon
10,704 Points

It's seen as a HTML 5 standard <body> <header></header> <section></section> <footer></footer> </body>

Though mostly I think it's an ascetic thing, where It's been the norm for so long that most people so it that way so people know how to navigate the site.