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 Grouping Content Challenge

Alicia Castillo
Alicia Castillo
4,996 Points

what do you mean self contained pieces of content?

what do you mean self contained pieces of content?

index.html
<!DOCTYPE html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
    <title>My Blog</title>
  </head>
  <body>
    <header>
      <h1>My Web Design &amp; Development Blog!</h1> 
      <nav>
        <ul>
          <li><a href="#">About</a></li>
          <li><a href="#">Articles</a></li>
          <li><a href="#">Recent Work</a></li>            
        </ul>
      </nav>
    </header>

    <h2>The Main Articles</h2>   
    <main>
    <h3>My Favorite HTML Courses</h3> 
    <p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget <a href="#">feugiat ante faucibus</a>.</p>


    <h3>10 Handy CSS Features</h3> 
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">ultrices posuere</a>.</p>    
    </main>

    <h3>Follow Me on Social Media:</h3>
    <ul>
      <li><a href="#">Twitter</a></li>
      <li><a href="#">Facebook</a></li>
      <li><a href="#">LinkedIn</a></li>     
    </ul>

    <footer>
      <p>&copy; 2017 My Blog</p>
    </footer>
  </body>
</html>

3 Answers

Hi there,

Self-contained usually means that it can stand on its own, regardless of the content around it. Since it's asking you to wrap the <h3> and <p> tags indicating a title and body, it's looking for the <article> tag. <article> is usually used for things like blog posts or news articles, which are things that could be placed anywhere and still make sense, because they contain their own heading, text, and maybe pictures - they're self-contained.

Hope this helps!

Sean T. Unwin
Sean T. Unwin
28,690 Points

Self contained pieces of content is content that is grouped by it's direct relationship to each other. In the example of this Challenge it is grouping a title and paragraph. They are related to each other so we want to surround them with a cover, to use an analogy, like a book. This analogy is for the coder, not the reader of the content as the "cover" or wrapper is generally only visible in the HTML markup and not necessarily visual to the reader or user. In this sense it can also be thought of as a way of organizing content items.

There is a hint here as to which tag to use to group the h3 and p tags together in the last word of the h2 tag just before main.

dragos busuioc
dragos busuioc
24,908 Points

article tag

<article>
    <h3>My Favorite HTML Courses</h3> 
    <p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget <a href="#">feugiat ante faucibus</a>.</p>
</article>
<article>
    <h3>10 Handy CSS Features</h3> 
    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et <a href="#">ultrices posuere</a>.</p>    
</article>