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

CSS How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Style Tages

I followed the video tutorial for making a simple color font change but the challenge says I forgot the style tag. What am I forgetting

index.html
<style>

    h1 {
      color: blue;
    }

</style>
    <h1>Wendy Moon</h1>

2 Answers

Hi Wendy,

I've had a go of the code challenge and the final version to answer all tasks is below, you may notice it asked me for green color value but that's easily changed to what ever it decides it likes next ...

<body>
    <style>
        h1 {
          color: green;
        }

    </style>
        <h1>Nick Pettit</h1>
</body>

Hope this helps if you are not already past this point as i notice it was a while ago you posted this question!

Good Luck Craig

Chase Marchione
Chase Marchione
155,055 Points

Hi Wendy,

Are the opening and closing body tags still in your code? I tried removing them and I got the error you did. The body tags are necessary to define the HTML document body (and all of the contents within it.)

Example Code (had to put spaces in body tags because they wouldn't appear without them... in the challenge you'd want to remove those):

< body >
    <style>
        h1 {
          color: green;
        }
    </style>
        <h1>Wendy Moon</h1>
< /body >