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


Julie Vandebosch
Julie Vandebosch
10,360 Points

<article> or <section>?

I am not sure whether I should use <article> or <section> in the content pages of a website. It's just information, like an about us page, how the product works, testimonials, a contact page, a gallery,... So I'm not talking about news or blog posts.

Can anyone help me?

1 Answer

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

The <section> tag defines sections in a document, such as chapters, headers, footers, or any other sections of the document.

The <article> tag specifies independent, self-contained content. An article should make sense on its own and it should be possible to distribute it independently from the rest of the site. Potential sources for the <article> element:

  • Forum post
  • Blog post
  • News story
  • Comment

In any case, you can use just div. Section and Article are new HTML 5 element, which is equivalent to div.

Julie Vandebosch
Julie Vandebosch
10,360 Points

Would you consider information like an about us page, how the product works, and testimonials as independent, self-contained content? I'm still a bit confused.