Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Ella Ruokokoski
Ella Ruokokoski
20,868 Points

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>