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

Code challenge HTML Forms

Can anyone explain why the following code won't work? The challenge asks me to 'Add a paragraph tag that has some text inside of it bolded.'

It keeps telling me to recheck my work, but from what I can see my code is correct.

Many thanks

<div>
  <h2>Shopping List</h2>
  <ol>
    <li>Bread</li>
    <li>Milk</li>
    <li>Cheese</li>  
  </ol>  

<p>Bold <b>text</b></p> </div>

</body>

What's up Jordan.

The questions asks you add a "paragraph" tag <p> that has some bold text inside of it <strong>

Your code above only has: <div> <h2>Shopping List</h2> <ol> <li></li> <li></li> <li></li> </ol> </div>

Inside of the containing <div> </div>

You should insert the <p><strong>Around Your Text</strong></p>

Hope that helps.

 <div>
      <h2>Shopping List</h2>
      <ol>
        <li></li>
         <li></li>
         <li></li>
      </ol>
      <p><strong>words</strong></p>
    </div>

You're basically missing the paragraph tag inside of the div.....markdown didn't work for me the first time

If you're looking for an easier way to use markdown go here Markdown Cheatsheet

2 Answers

I used <p> tags in addition to <b> tags around the containing text

did you close your div tag?

-twiz

If it,s for the code challange it,s important to remember to close all the tags :

The code should be working, but it is missing a closing </div> tag in the end of the code :

<div> <h2>Shopping List</h2> <ol> <li>Bread</li> <li>Milk</li> <li>Cheese</li>
</ol>
</div> </div>