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 Sectioning Content with <article>, <nav> and <aside>

Question about Divs

Hey guys

I was wondering. Do we do away with divs completely in favour of section, aside etc?

Please correct me if im wrong, but my understanding is non semantic is grouping with divs and semantic is grouping with the correct tags like section etc? Or do we use a combination of both?

Sorry for dumb question :) Any help is appreciated

Thanks in advance

Paul

2 Answers

Ezra Siton
Ezra Siton
12,644 Points

You can not always use section or aside. Sometimes you need to use divs (for layout for example). But yes - div (and spans) are not semantic tags.

I think this article give great answer to your Q: http://html5doctor.com/you-can-still-use-div/

more articles:

Thanks a lot, and great link btw :)

Ezra Siton
Ezra Siton
12,644 Points

The next generation of "meaning code" is micro-data. Related to your Q (you cannot give meaning to all of your content only by HTML5 tags):

I believe in the future treehouse will add course about this issue.