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 Body, 1st level headline, and style tags

I'm confused about the setup and the answer to this question!

I don't know what goes where and I don't understand, opening a new tab and re-watching the videos didn't help much either.

index.html
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Once Upon a Time</title>
    <style>
        h1 {text-align:left; color:green}
    </style>
</head>



</html>

Hey Emma,

What's your question?

-Faraz

Can you please tell me what question is this ? and what error are you getting.

1 Answer

Hi Emma,

The challenge asks the following: Start by writing an opening and closing body tag below the closing head tag, and above the closing html tag.

So add these tags like so:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Once Upon a Time</title>
    <style>
        h1 {text-align:left; color:green}
    </style>
</head>
  <body>

  </body>
</html>
Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

MOD Edit: Edited markdown so answer with code formats for viewing in the forum. Just needed another line break before opening 3 backticks and language name after. :) :dizzy:

Thanks Jason. I tried it several times, but failed to get it right ;-)