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

Cannot update CSS in challenge question. My answer looks correct, but it's not being accepted.

Text-align should change to right and I did so, but it's showing incorrect. This is what I did. I deleted the word left and typed right. Is this a system glitch or am I doing something wrong?

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



</html>

3 Answers

Hi Melissa,

You're almost there but you look to have a few of the tags mixed. Try this:

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

Notice the body tags appear after the head tags and the h1 within the body is different from the title within the head.

Hope that helps :)

-Rich

Thank you. It worked.

No problem! Please could you mark the answer as Best Answer if you're sorted now? :)

Thanks

-Rich