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

Cosmin Iuga
Cosmin Iuga
2,352 Points

I wrote this correctly. It styled it the way it was supposed to but somehow I can't move forward. Can you help?

I wrote this correctly. It styled it the way it was supposed to but somehow I can't move forward. Can you help?

index.html
<style>

 h1 {
    color: blue;
 }

 </style>

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

13 Answers

Not sure but, it may be because you don't have head tags?

Try this:

<head>
<style>

 h1 {
    color: blue;
 }

 </style>
</head>

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

Hope this helps!

Cosmin Iuga
Cosmin Iuga
2,352 Points

Interesting... why do I need a head?

Did it work?

Cosmin Iuga
Cosmin Iuga
2,352 Points

It did not work... I did not think I had to specify the style weather it was in the head or not.

Cosmin Iuga
Cosmin Iuga
2,352 Points

I also have it written this way and it works outside of the Treehouse system...

<style>

h1 { color: blue; }

h2 {color: green;}

</style>

<h1>Cosmin</> <h2>Iuga</>

Can you post all of your code?

And what error does the code challenge give you?

Cosmin Iuga
Cosmin Iuga
2,352 Points

<style>

h1 { color: blue; }

h2 {color: green;}

</style>

<h1>Cosminel</> <h2>Iugamorisca</>

Cosmin Iuga
Cosmin Iuga
2,352 Points

it just says bummer... Don't forget your style...

Can you post a link to the challenge?

Cosmin Iuga
Cosmin Iuga
2,352 Points

Sorry... Not familiar with the " challenge"...

The one which you can't pass?

Cosmin Iuga
Cosmin Iuga
2,352 Points

Let me see if I can find it...