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 Forms HTML Mastery

Challenge 2 of 8 in Forms

I can not get past this challenge! "Add a second level heading inside the div containing the text "Shopping List" No space between the text, please." I'm confused because this wasn't part of the Forms videos. This is what I've done:

<div>This is a sentence.</div> (Got that correct for challenge 1.)

Now for challenge 2:

<div>This is a sentence. <h2>ShoppingList</h2> </div>

I've also tried:

<div>This is a sentence.> <h2>Shopping List</h2> </div>

<div>This is a sentence.<h2>ShoppingList</h2></div>

I've also tried with a space in between Shopping and List. I have no idea what it wants me to do.

It always says "Bummer! I couldn't find a level 2 heading inside the div with the text "Shopping List."

Please help me!

Thank you for any help!

okay well that didn't work. I wrote it as the code I submitted. the divs, the / and < > but those didn't show up in my post so idk if this makes sense to anyone.

okay well that didn't work. I wrote it as the code I submitted. the divs, the / and < > but those didn't show up in my post so idk if this makes sense to anyone.

James Barnett
James Barnett
39,199 Points

Annie Chestnut - The forum uses markdown to correctly format code, check out this thread on how to type code in the forum for some examples.

2 Answers

Hi Annie!

When it says "second level heading" it is referring to the h2 tag. So it is asking you to create a second level heading with the text Shopping List inside of it.

It looks like this:

<div>
  <h2>Shopping List</h2>
</div>

Thanks Jennifer and James for your answers! I successfully completed the challenges. I sometimes the the wording for the challenges is confusing or vague. Not sure what they are looking for/wanting me to do.

James Barnett
James Barnett
39,199 Points

There's a give feedback button at the end of every challenge on challenges you found vague/confusing let Treehouse know.