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

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.