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

Proper use of section element

Okay, so I'm working on my website. On the home page I want two columns of images. One will be sites I've done for other people; and one of projects or things I've done for myself. So in short should I use the section element or a div? I know section shouldn't replace divs but it just seems like a lot of people have different opinions.

Is there a treehouse video on it? I can't seem to find one.

3 Answers

Tom Bedford
Tom Bedford
15,645 Points

Hi Carman

This HTML5 flowchart is very handy for deciding which element to use. It also has links to detailed pages on each of the elements in the flowchart.

If you are going to have a heading (e.g. <h1>Sites for me</h1> and <h1>Sites for other people</h1>) for each column then it would be appropriate to use the section element.

That chart is GREAT. Thank you!

Thanks guys:)