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

Viktoria S
Viktoria S
6,773 Points

Add a paragraph tag that has some text inside of it bolded. I put it inside the body <p>Some text <b>bolded</b></p>

Please help to find out what is wrong in the below HTML challenge: Challenge: Add a paragraph tag that has some text inside of it bolded.

<body> <p>Some text <b>bolded</b></p> <div> <h2>Shopping List</h2> <ol> <li>Apple</li> <li>Bananans</li> <li>Milk</li> </ol> </div> </body> I also tried to put it inside the div area, but it's still not accept it.

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>HTML Mastery Challenge</title>
  </head>
  <body>
    <h1>HTML Mastery Challenge</h1>

    <!-- Write your code below -->
    <p>Paragraph inside of it <b>bolded</b>.</p>
    <div>
  <h2>Shopping List</h2>
  <ol>
    <li>A</li>
    <li>B</li>
    <li>C</li>
  </ol>
</div>

  </body>
</html>

1 Answer

Wayne Priestley
Wayne Priestley
19,579 Points

Hey Viktoria,

You almost had it.
You need to use the strong tag and not a b I would also add the paragraph inside the div.

    <div>
  <h2>Shopping List</h2>
      <p>Paragraph inside of it <strong>bolded</strong>.</p>
  <ol>
    <li>A</li>
    <li>B</li>
    <li>C</li>
  </ol>
</div>

Hope this helps.