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 triallevikordus
4,877 PointsWhy not use section instead?
I don't understand why you wouldn't just use section tags?
2 Answers
Austin Whipple
29,725 PointsPossibly a couple reasons:
The first and most relevant is that, according to specifications, the
<section>
tag should be used only when grouping related content, usually associated with a heading. Not simply for convenience when scripting or styling. When that's what you're after, it's better to use the good ol'<div>
tag. This StackOverflow article is very handy.<section>
is only supported in IE9 and up, so depending on production time of the video, perhaps it was better to use<div>
rather than show<section>
and explain the caveats.
levikordus
4,877 PointsOK, thank you very much.