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

It keeps saying I need to put my head tag before my body tag? I keep rechecking but it still says I'm wrong.

Ive been rechecking and rewriting for around 20 minutes now but it keeps saying I'm wrong. I've even resorted to copy and pasting from the workspace but it keeps saying that I'm wrong. I'm not entirely sure what I'm missing if I am even missing something.

index.html
<!DOCTYPE html>
<html>
<head>

  <title>What have you done?</title>
  <meta charset="utf-8">

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

</head>

<body>
  <h1> What have you done?</h1>
    <h2>By Kaden Mullins</h2>

  <p>I know you're wrong. I know you are. Yet I follow you so completely. Like a dog, loyal to it's master.
    I abide by your every word. Why do you suppose that is? Perhaps you've carved into my brain as I lay sleeping. 
    Perhaps you've rearranged my thoughts in a way that makes me believe such. Or maybe, just maybe, you've fabricated
    this reality I live in, my mindset, and my morals all designed by those icy hands of yours. </p>

      <p>Yes! Thats it! You've done something.. I know you have. You vile creature you. I know your tricks and I refuse to let them 
    continue. I'm taking myself back. Maybe then I can decipher your words. That poison that drips from your tounge. Filling my head 
    with such mockery. Mockery to my humanity. Mockery to my morals and principals. I know you're onto me. I know you know. I've stayed 
    awake every night this month to make sure you no longer tamper my brain. Yet I do not catch you in the act? How odd...</p>




</body>
</html>

1 Answer

Steven Parker
Steven Parker
231,236 Points

You might be confusing the challenge with extra elements. This challenge only asks you to create the DOCTYPE, html, head, and body elements; and finally add one paragraph. Try doing only what the instructions ask for (this is a good practice for all future challenges).

Also, task 4 asks for that paragraph to have the specific contents of "My first paragraph!". Be sure to use that exact phrase.