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

Your paragraph needs to go between the <body></body> tags error.

Don't know what I am doing wrong.

index.html
<!--This is my TeamTreeHouse WorkSpace Backend editor. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.-->
<!DOCTYPE html>
<html>
<head>

  <title>Team Treehouse WorkSpace</title>
  <meta charset="utf-8">

   <style>
    h1 {text-align: center; color: blue}
    h2 {text-align: center; color: red}
 </style>

  </head>
  <body>
  <h1>My Workspace</h1>
    <p> "My first paragraph!" </p>
</body>  
</html>

4 Answers

Angela Visnesky
Angela Visnesky
20,927 Points

Hi Edvin, I have noticed that the challenges ask for very specific responses. You may want to eliminate your extra code and go with

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

Hope this helps!

Hi Edvin,

Your code is almost perfect. Except, CSS styles should always be written with this general construction:

  h1 {color: blue;}

or, with some indenting:

h1 {
    color: blue;
}

In a couple of your styles you are missing the semi-colon on the end.

All the best,

Ede

Thanks.

Try adding semi-colons after your color CSS declaration:

   <style>
    h1 {text-align: center; color: blue;}
    h2 {text-align: center; color: red;}
 </style>

MDN - CSS Syntax

For some reason I am still getting the same error :( This is what I have thus far with the edits: <!--This is my TeamTreeHouse WorkSpace Backend editor. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.--> <!DOCTYPE html> <html> <head>

<title>Team Treehouse WorkSpace</title> <meta charset="utf-8">

<style> h1 {text-align: center; color: blue;} h2 {text-align: center; color: red;} </style>

</head>

<body> <h1>My Workspace</h1> <p> "My first paragraph!" </p> </body>
</html>

If I do this it tells me to go back to the first step.

Angela Visnesky is correct β€”Β the challenge did not ask you to fill out the head tag or add an h1 to the body tag. Other than those minor snafus your final code should look something like this:

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