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 trialLászló Martin
4,291 PointsWhy does not accept the site this code?
<p><b>Add a paragraph tag that has some text inside of it bolded.</b></p>
László Martin
4,291 Points'<!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>
Jason Anello
Courses Plus Student 94,610 Points3 Answers
Kristen Law
16,244 PointsIt 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:
<div>
<h2>Shopping List</h2>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<p>This is a <strong>paragraph</strong></p>
</div>
Brian DuPont
30,448 PointsYou 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.
László Martin
4,291 PointsThank you
Kristen Law
16,244 PointsKristen Law
16,244 PointsCan you post your code?