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 trialRifelle Owens
443 PointsHTML, putting paragraph in body element
The challenge is asking me to put "My first paragraph!" in the body element. Not sure what I am doing wrong...
<!DOCTYPE html>
<html>
<head>
</body>
</html>
<head>
</head>
<body>
<p>"My first paragraph!"</p>
</body>
3 Answers
__ROLLER__ Angel
25,606 PointsAlso, you have a random closing body tag below your head tag that should be removed.
<head>
</body>
Mike Wagner
23,559 PointsThis is another one of those poorly written challenges in which it only wants the stuff inside the quotation marks, not the quotations themselves. If you remove them in your paragraph, you'll pass the challenge.
Rifelle Owens
443 PointsThanks for your help!
Ella Ruokokoski
20,881 PointsYour closing html tag should be the last tag of the code, just after the closing body tag. You also have one extra opening head tag there. Among the errors others pointed out already here's the fixed syntax :)
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>My first paragraph!</p>
</body>
</html>
Rifelle Owens
443 PointsRifelle Owens
443 PointsThank you as well for your help!
__ROLLER__ Angel
25,606 Points__ROLLER__ Angel
25,606 PointsWelcome. If you upvote my answer I get points... :)
Mike Wagner
23,559 PointsMike Wagner
23,559 PointsNice catch. I wasn't paying enough attention to notice that. I guess I'm too tired, haha.
__ROLLER__ Angel
25,606 Points__ROLLER__ Angel
25,606 Pointshaha Thanks. I'm tired too but typos/syntax errors seem to jump out at me often. I find myself reporting typo's everywhere I go lol.