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
Jordan Pillai
6,485 PointsCode challenge HTML Forms
Can anyone explain why the following code won't work? The challenge asks me to 'Add a paragraph tag that has some text inside of it bolded.'
It keeps telling me to recheck my work, but from what I can see my code is correct.
Many thanks
<div>
<h2>Shopping List</h2>
<ol>
<li>Bread</li>
<li>Milk</li>
<li>Cheese</li>
</ol>
<p>Bold <b>text</b></p> </div>
</body>
Corey Baker
4,890 Points <div>
<h2>Shopping List</h2>
<ol>
<li></li>
<li></li>
<li></li>
</ol>
<p><strong>words</strong></p>
</div>
You're basically missing the paragraph tag inside of the div.....markdown didn't work for me the first time
Corey Baker
4,890 PointsIf you're looking for an easier way to use markdown go here Markdown Cheatsheet
2 Answers
Jordan Pillai
6,485 PointsI used <p> tags in addition to <b> tags around the containing text
Twiz T
12,588 Pointsdid you close your div tag?
-twiz
Joakim Skansen Flatmoen
Courses Plus Student 24,223 PointsIf it,s for the code challange it,s important to remember to close all the tags :
The code should be working, but it is missing a closing </div> tag in the end of the code :
<div>
<h2>Shopping List</h2>
<ol>
<li>Bread</li>
<li>Milk</li>
<li>Cheese</li>
</ol>
</div>
</div>
Corey Baker
4,890 PointsCorey Baker
4,890 PointsWhat's up Jordan.
The questions asks you add a "paragraph" tag <p> that has some bold text inside of it <strong>
Your code above only has: <div> <h2>Shopping List</h2> <ol> <li></li> <li></li> <li></li> </ol> </div>
Inside of the containing <div> </div>
You should insert the <p><strong>Around Your Text</strong></p>
Hope that helps.