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 cant get past the Challenge 1 question. I can perform the task but it wont let me pass. Help?

On the question about adding a <style> to the heading I am having difficulty. I can change it blue and I understand the topic but cant figure out what they want me to do to let me pass this question. Any suggestions?

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

3 Answers

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

if it is the first Challenge in the course, the first step you have to type only the h1 tag like :

<h1> </h1>

the second step, put your name in it :

<h1> nick petit </h1>

( remove the body tag )

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Joshua,

I don't know what the challenge question is, but I'm guessing its asking you to change the h1 text to blue.
If so you need to add style tags and write your code within them.

<style>
/* your code goes here */
</style>

Hope this helps.