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 Add Style to the Page

Styling

<style>

h1 { color: blue; }

</style> <h1>Liban Galal</h1>

what is that iam missing here?

Matteo Cirami
Matteo Cirami
8,906 Points

What's happening? Do you have that enclosed in <style> tags?

Yes, Iam typing exactly as he is typing?

<style>

h1 { color: blue; }

</style> <h1>Liban Galal</h1>

vickiecomrie
vickiecomrie
3,248 Points

That selector in your stylesheet should produce a heading of size h1 and text color of blue. What is the problem--is it not displaying? Do you have this declaration in a linked stylesheet or in an embedded stylesheet? (in the header of your document you could put <style> h1 {color: blue;} </style)

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Liban;

Welcome to Treehouse!

A couple of things. First make sure that your h1 selector is inside your style tags, like so:

<style>
    h1 {}
</style>

Also, for the code challenge, at least when I took it, you need to have the color of the h1 element set to green.

Post back if you are still stuck and happy coding!

Ken