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