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

Theresa Rodriguez
Theresa Rodriguez
830 Points

Error message: is this a bug? Challenge task 3 of 4 under code challenges html

I have entered the code exactly as the sample had it. the error message says: Bummer! Your <head> tag needs to be before the <body> tag. But it is!

Is this a bug that can be fixed or am I blind to something here?

<!DOCTYPE html>

  <title>Title Of Exercise</title>
  <meta charset="utf-8">

    h1 {text-align: center; color: red}


    <h1>Exercise About Head and Body html</h1>

      <p>paragraph one</p>

      <p>paragraph two</p>


2 Answers

Brian Foley
Brian Foley
8,440 Points

Hi Theresa,

You can pass that question in the challenge if you delete all the code in between the opening and closing head and body tags. Hope that helps :)

Theresa Rodriguez
Theresa Rodriguez
830 Points

Thank you, that solved it. But I was wondering if my answer was correct or not.