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

Shanmukh Challa
Shanmukh Challa
795 Points

I can't complete the challenge task and it won't let me write in it.

It feels like that interface freezes because it won't let me do anything with it

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>
  <body>


</html>

2 Answers

Hi,

Not sure why it's freezing. Just tested and it appears to be working now if you could recheck.

One thing to note is that your code is missing a few tags. By stage 2 it should look something like 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>

Note the h1 tags and closing body tag.

Hope that helps :)

-Rich

Christopher van Ruitenbeek
Christopher van Ruitenbeek
13,705 Points

Yes, you are right.

I didn't check the code well enough :p.

Christopher van Ruitenbeek
Christopher van Ruitenbeek
13,705 Points

After your color: green, you need a closing semi-colon. Else the css will stop working and the code challenge will fail.

    <style>
        h1 {
          text-align:left; 
          color:green;
          }
    </style>