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 HTML Basics Structuring Your Content Marking Up a Blog Post

Confused about "articles" and when it's necessary to use this element.

I'm wondering what purpose the element "articles" serves?

3 Answers

Steven Parker
Steven Parker
230,230 Points

This is one of several semantic containers introduced in HTML5 that are intended to help organize parts of a web page based on what they are used for, and thus to simplify creating uniform styling for the site.

As defined on the MDN documentation page:

The HTML <article> element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include: a forum post, a magazine or newspaper article, or a blog entry.

Thanks for your help.

If I fail to categorize a section of the body as an article, will it affect the structure of my html?

Steven Parker
Steven Parker
230,230 Points

When you say "fail to categorize", do you mean use a generic container (such as "div") instead of a semantic one?

If so, there won't be any visible difference on the page, but it may affect screen-reading software used by people with visual impairments, and it may also affect how search engines collect data about your page.

Thank you, yes when I just don't tag it or place the article it in an <article> tag.