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

Why are we using DIVs?

If this is HTML 5 (as Nick says at the beginning of the video), why aren't we using the new structural tags such as <section> <header> <body> <nav> instead of DIVs?

Correct me if I'm wrong but I believe those new tags (you mean section etc?) have semantic use. For example Google can read your content better because of them.

1 Answer

Div is considered a last instance element. If you can't use any other semantic elements like section or article or nav or aside, you can use div. However, using divs is not a mistake. You can use them if you want, but if another element is more appropriate, you should use this element - section etc.