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

Tamara Harris
Tamara Harris
1,692 Points

I am having trouble understanding the instructions on this one.

I'm not sure if it's asking for grouping of each pair or each individual element.

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

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Tamara,

The instructions want each set of <h3> and <p> tags wrapped separately. So, here there are 3 <h3> sections, and each section will need to be wrapped.

The other problem, is you are using the <main> tag, but the challenge wants "an element that describes self-contained pieces of content". The <main> tag is for main content, but the <article> tag is for content that is relevant to the main content, but still kind of on it's own.

Keep coding! :) :dizzy:

SAMUEL LAWRENCE
PLUS
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

What they're asking you to do is Group each set of h3 and p elements, so you see there is a

<h3>10 Handy CSS Features</h3> 
    <p>Pellentesque et <a href="#">ultrices posuere</a>.</p> 

That is one set. So group that set using an element that describes self-contained pieces of content. I assume you know what that element is. So in total, there should be 3 groups of that element when you're finished. Two containing an h3 and p pair and one containing an h3 and ul>li pair.

Hope I answered your question. If I did, this would be my first answer to a question since I joined Treehouse. I'm excited. If I didn't let me know. thanks. Good luck coding.

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Congratulations on your first answer! :thumbsup:
You'll find the Community a great place to help out, but also an Excellent place to Learn.

Keep Coding and Keep helping! :) :dizzy:

SAMUEL LAWRENCE
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

I didn't want to give you the answer. What I do when I'm stuck or I forget the answer to a quiz question, I just go back to the video. The answer is in the video. It's a good way to reinforce what you've just learned and also an instant review. Because of the fact that you just finished the lesson and forgot is a good indicator that you should probably watch it a second or third time. Remember, unless you have an eidetic memory, you'll never remember everything you hear or see the first time.

Tamara Harris
Tamara Harris
1,692 Points

I have used the aside element around each individual set and that was it! Thank you!

SAMUEL LAWRENCE
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

Glad you were able to get it to work. Keep it up. You're doing great.