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 trialThirumalai vasan
iOS Development Techdegree Student 1,534 PointsOn 4th Quiz, HTML?
On 4th Quiz, why can't i'm unable to print the output, as it says "Your paragraph needs to go in between <body></body> tags what that mean?
<!--This is my story, but you should insert your own story below. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.-->
<!DOCTYPE html>
<html>
<head>
<h1> "My first paragraph!"</h1>
</head>
<body>
<p>"My first Paragraph!"</p>
</body>
</html>
1 Answer
zainsra7
3,237 PointsHi ,
Your put paragraph inside head tags ,
<head>
<h1>paragraph</h1>
</head>
The text, fields, headings which you want to display always go in <body> </body> tags
so try to put the above <h1></h1> tag inside the <body></body> tag, but the challenge says you to put paragraph in <p></p> tags
Like this,
<!--This is my story, but you should insert your own story below. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.-->
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>"My first Paragraph!"</p>
</body>
</html>
I hope it answers your question , happy Coding :)
- Zain
Thirumalai vasan
iOS Development Techdegree Student 1,534 PointsThank You So Much! i got the answer!, that header file is just for fun! but it really doesn't matter it all.
Adam Sommer
62,470 PointsAdam Sommer
62,470 PointsIt means the the paragraph element needs to be inside the body element:
For example the strong element below is inside the p (paragraph element):