Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,567 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.