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

section, article, HTML5 elements - Nick course

Hi. Why Nick in HTML course didn't talk about section, article, etc HTML elements? Is there any reason?

3 Answers

Matthew Mascioni
Matthew Mascioni
20,444 Points

Which course are you referring to? If it's the HTML Deep Dive, or Build a Simple Website project, these two are designed to give you the fundamentals of the HTML markup language.

The elements you're talking about; for example, section and article, allow for better semantics in your code. For example, if I had:

<article class="featured">Some text</article>

or

<div class="featured>Some text</div>

The two would work identically, for example, when styling with CSS. The difference is that while one is relatively generic ('div'), one has some semantic meaning ('article'). This is a pretty good article on some of the semantics that the HTML5 spec introduces. However, you could not use either element without a basic understanding of how elements work. This is what I perceive is the aim of the HTML foundation courses.

Of course, in the future, there's always the possibility that separate videos could be released detailing the purpose of the new elements. Totally up to Treehouse :-)

I refer to HTML deep dive.

Matthew Mascioni
Matthew Mascioni
20,444 Points

Yep! So in that case, it would be the foundations of HTML and an overview of all the different kinds of elements you could come across. In the future, perhaps additional content will be provided to cover the semantic meaning of the new ones.

James Barnett
James Barnett
39,199 Points

The HTML5 semantic elements are quite problematic due them breaking layouts in older browsers. You can of course use HTML5 shim but your website will be broken for people who don't have JavaScript enabled.

Why are they slow at updating their content??

Matthew Mascioni
Matthew Mascioni
20,444 Points

I wouldn't really define it as 'slow'-- the Treehouse team, from what I can see, only pushes the highest quality content to their members. This takes weeks of revision and a lot of dedication.

In the interim, you have quite a bit of HTML content to chow down on! :)