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

I have both <style></style> above <body> and keep getting Bummer! Don't forget to add a style tag. Can't go on.

Taking the code challenge and the page is unable to read the code correctly.

index.html
<style>
</style>
<body>
    <h1>Nick Pettit</h1>
</body>

I ran into this issue a few times on different challenges. It wants it to be very specific sometimes. Try putting the whole style tag on one line and see if that helps. I ran into one challenge in the CSS section that wouldn't let me pass because I didn't write my code on line 2. I have to move it up to line 2 from line 3 before it would count it.

I figured it out. It wanted the style tag directly above the h1 element. I have it above the body tag. Thanks for the help!

1 Answer

You need to add the head section like so:

'''<head>
    <style>
    </style>
</head>

<body>
    <h1>Nick Pettit</h1>
</body>'''