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

Nico Formaggio
Nico Formaggio
1,323 Points

Stuck on Challenge Task 4 of Code challenge (create bold paragraph)

I don't understand why this code challenge isn't succeeding. I have tried putting

which I would've thought fitted the bold paragraph criteria but no luck. I also tried adding text using the <strong> attribute but still no luck.

The answer may be obvious but I just can't wrap my head around this so I would be very grateful in finding out if it is my mistake or I've encountered a glitch in the matrix!?

4 Answers

Although it asks for bold

<p><b>Text</b></p>

, you should be using strong

<p><strong>Text</strong></p>

Bold or Strong... ;)

James Barnett
James Barnett
39,199 Points

In HTML5, the <strong> tag is for "now for strong importance" as noted by Nick in the text video.

What wasn't noted by Nick is that the was<b> tag was for bold, now for “stylistically offset” text, such as keywords.

If neither of those apply to the semantic meaning of the content then you should use CSS (as noted by Nick in the text video).


Nick Pettit - Do you think this question could be reworded something along the lines of ... "strongly emphasize text in a paragraph".

Nick Pettit
Nick Pettit
Treehouse Teacher

This is the first time I've heard about this particular issue. If it comes up again I'll change it, but I'm hesitant to be too direct with the instructions. Providing good instructions without giving away the answer is a difficult balance. :)