Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Structuring Your Content Semantic HTML: <header>, <footer> and <section>

Amandeep Pasricha
Amandeep Pasricha
14,932 Points

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,192 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.