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

Vic Mercier
Vic Mercier
3,276 Points

Don't understand the article element.Please, explain it clearly.

I really don't understand.My only though about this element is(I am not sure about what I am writing ) that it divide content in article like article in a newspaper??

1 Answer

Robert Leonardi
Robert Leonardi
17,151 Points

Hi Vic,

article tag is very useful especially if you are building website for blog posts etc.

it's clearly explained here: The <article> element identifies a self-contained piece of content which could theoretically be distributed to other websites and platforms as a stand-alone unit. The <article> element is a good choice to contain entire blog posts, news articles, and similar content. (source: http://html.com/tags/article/)

You don't have to use it, but if you do, it will clearly seperates between articles. And within that article, it will have its own h1, p (or p's), footer. You can also give each article it's own id="" , class="" and name=""

Hope it helps