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 Treehouse Club: HTML Publish a Story HTML Structure

Rifelle Owens
Rifelle Owens
443 Points

HTML, 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...

index.html
<!DOCTYPE html>
<html>
<head>
</body>
</html>
<head>
</head>
<body>
<p>"My first paragraph!"</p>
</body>

3 Answers

__ROLLER__ Angel
__ROLLER__ Angel
25,606 Points

Also, you have a random closing body tag below your head tag that should be removed.

<head>
</body>
Rifelle Owens
Rifelle Owens
443 Points

Thank you as well for your help!

__ROLLER__ Angel
__ROLLER__ Angel
25,606 Points

Welcome. If you upvote my answer I get points... :)

Nice catch. I wasn't paying enough attention to notice that. I guess I'm too tired, haha.

__ROLLER__ Angel
__ROLLER__ Angel
25,606 Points

haha 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.

This 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.

Your 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>