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

My style code is not working

I have done this twice and think I have everything EXACTLY like the example in the video but highlighting the word blue does not show me an example of the color and when I save and preview my name is still in black. What in the world am I doing wrong?

This is what I have: <style>

h1 { color: blue; } </style> <h1>Carla Lyman</h1>

3 Answers

Hi Carla

Wrap your name in a h1 tag

html <h1>Carla Lyman</h1> h1{color:blue;}

Jonas Mørkeby
Jonas Mørkeby
3,530 Points

Hello. If you are able to post a little bit more of your code, then it might be easier to figure out what is happening and why it does not work.

Is it the code challenge you are struggling with?

In the code challenge I was asked to color the text inside the H1 tags green. This is how that is done:

  <style>h1 {color:green;}</style>
    <h1>Nick Pettit</h1>

Do you see any differences between your code and mine?

Best regards, Jonas

Thanks for the efforts. I figured it out....it was actually a space that was the bug-a-boo in workspaces.