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 trialMichael Silvares
1,811 PointsChallenge for the Forms section is not working is not working correctly
I am going through the challenge to input a paragraph tag with text and bold some of the text in the paragraph but the system is not accepting my work which is correct.
2 Answers
Daksh Shah
3,534 PointsHey Michael! I tried the challenge and it worked fine :)
Here's my correct code:
<!DOCTYPE html>
<html>
<head>
<title>HTML Mastery Challenge</title>
</head>
<body>
<h1>HTML Mastery Challenge</h1>
<!-- Write your code below -->
<div>
<h2>Shopping List</h2>
<ol>
<li>Bread</li>
<li>Milk</li>
<li>Eggs</li>
</ol>
<p><strong>Shopping</strong> is fun.</p>
<form>
<input type="text" value="Hello World">
<input type="submit" value="Shoot it now!">
</form>
</div>
</body>
</html>
Hope this helped you :)
Happy learning!
Michael Silvares
1,811 PointsHi, thank you for the assistance. I guess the system would only accept a strong tag and not a bold tag, though a both correct.
Thanks again.
Daksh Shah
3,534 PointsGlad I could help you Michael. Here's some important advice:
According to the HTML5 specification, the <b>
tag should be used as a LAST resort when no other tag is more appropriate. The HTML5 specification states that headings should be denoted with the <h1>
to <h6>
tags, emphasized text should be denoted with the <em>
tag, important text should be denoted with the <strong>
tag, and marked/highlighted text should use the <mark>
tag.
Tip: You can also use the CSS font-weight
property to set bold text.