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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

this isnt working

I wrote: <head> <style> h1 { color: red; } </style> </head>

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

And it is not allowing me to progress any further!! wtf

8 Answers

Did you put the style tags?

<style>h1 {color: red;} </style>

I found out the problem. for some weird reason the thing wanted me to put the styleing in the body

Darrel Lyons
Darrel Lyons
2,991 Points

Make sure you have the style takes around your CSS.

<style type="text/css">
    h1
    {
     color: red;
    }
</style>

I wrote ""<style type="text/css"> h1 { color: red; } </style>

<body> <h1>Nick Pettit</h1> </body>""

and it didnt work. and my first post when i tried to paste this whole code it only posted like the first line.

It just did it again

hector villasano
hector villasano
12,937 Points

Eric Swanson where are you writing that code? on index.html ore main.css if in index.html : is this code in between the head element ?