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

Why does not accept the site this code?

<p><b>Add a paragraph tag that has some text inside of it bolded.</b></p>

Can you post your code?

'<!DOCTYPE html>'<br> <'html'><br> <'head'><br> <'title'>HTML Mastery Challenge<'/title'><br> <'/head'><br> <'body'><br> <'h1'>HTML Mastery Challenge<'/h1'><br> <'div'><br> <'h2'>Shopping List</'h2'><br> <'ol'><br> <'li'><'/li'><br> <'li'><'/li'><br> <'li'><'/li'><br> <'/ol'> <'p'><'b'>Add a paragraph tag that has some text inside of it bolded.<'/b'> <'/p'><br> <'/div'><br> <'/body'><br> <'/html'><br>

3 Answers

It looks like you used <b> tags instead of <strong> tags.

From this site:
According to the HTML 5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate.

In this case, the <strong> tag will accomplish what needs to be done, so it should be used instead.

Here is an example:

  <h2>Shopping List</h2>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
  <p>This is a <strong>paragraph</strong></p>
Brian DuPont
Brian DuPont
30,448 Points

You need to add a paragraph tag that is nested inside the div tags you made on step 1. Inside that paragraph tag, you can type anything you want, but make sure you put strong tags around it so they will be bold.

Thank you