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 HTML Basics Structuring Your Content Semantic HTML: <header>, <footer> and <section>

Could we have wrapped Top Resources within section tags?

Wouldn't top resources deserve its own section?

I saw in the next video, they put aside tags over it. Could you have put both a section and aside element to encompass Top Resources>

Technically, according to HTML code rules you can. However the point of using semantic tags is to add extra meaning to your containers. div is a generic container label, with no meaning so it is used merely for styling purposes.

Section indicates that all the objects inside of it are somehow related. For example, all the options of a radio button group or a label to it's input box.

aside, article and summary add the extra meaning that allow us to define extra meaning to those sections.

1 Answer

Kristaps Vecvagars
Kristaps Vecvagars
6,193 Points

As far as I know, yes, you could have. To my knowledge tags such as <section>, <article>, <main> and others have no special properties of their own, it's just how and where you use them. As far as the structure of the page goes, you can structure the entire page in <section> tags or just plain <div> tags.