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

Marianne Morgan
Marianne Morgan
188 Points

check work

Hi, 2 questions

  1. when I'm in the challenge workspace, why am I not getting the auto complete on the elements?
  2. I keep getting a "bummer" when I do have the ending style tag.

1 Answer

Hi!

1) Auto complete feature is not currently embedded into the code challenge workspace. It's a much advanced feature (I assume) that might find itself in standalone IDE's and may increase complexity when added to an internet based code editor. I believe Treehouse would give you a better idea of its auto complete feature addition in the near future.

2) For the other part
Challenge 1 - add a style tag above h1 tag

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

There are some tags that don't have an ending tag like the <img> <br>

Challenge 2 - Now, write CSS that will select the h1. Don’t forget your curly braces!

<body>
  <style> 
    h1{
    }
  </style>
    <h1>Nick Pettit</h1>
</body>

its a simple css selector h1 to be written within the opening and ending style tags

Challenge 3 - Change color of h1 to green

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

Change the color to green by using the color attribute of the css property

Hope that helps