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

<article>, <main> <aside> <section> vs <div>

How come TreeHouse HTML class did not touch on the subject of semantic tags like "article" "main", "section" and "aside" tags. Instead much emphasis on "div" as the container of choice is taught. Is there any reason for this? Hardly any mention of the other element tags above.

2 Answers

Also, don't forget to check caniuse.com to check cross browser compatibility while implementing HTML 5, depending on your client, or your needs, you may need to find a few workarounds.

W3C's documentation page highlights the answer to your question. There are specific uses for the three elements you have specified in which differ from the div element. That is a good question though.

Guled,

I think you may have misunderstood my question. I edited and rephrased my question. My question is how come Treehouse HTML class did not cover the semantic tags at all in their classes and I am curious why.

> My question is how come Treehouse HTML class did not cover the semantic tags at all in their classes

The course stuck nearly entirely to HTML4 tags didn't cover almost any of the HTML5 topics, with the exception of the doctype.

> We're going to mostly be learning about HTML4 tags.

Global Structure Part 1 video at time index 1:25.

Treehouse is planning on updating the HTML course some time in 2014.

Eduardo Garcia
Eduardo Garcia
4,571 Points

I personally think you guys should have it as a separate course, as HTML is a beginner's course. Maybe an HTML Semantics intermediate course, I was quite confused when I started learning the new HTML5 semantic tags.

Eduardo Garcia -

There's a lot of really bad information out there about the HTML5 semantics.

I recommend you try to forget it and read this blog article instead

http://www.vanseodesign.com/web-design/html5-semantic-elements/