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 Introduction to HTML and CSS (2016) Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

Trevor Getten
Trevor Getten
1,708 Points

Stuck on Challenge 2 of 2 on introduction to HTML and CSS.

I must be missing something for this challenge and have reviewed the videos in the lesson several times and still not getting it right. all the challenge is for is to change the color of the <h1> tag from white to purple. I feel silly for needing help on the first lesson but am totally new to this so any assistance would be most appreciated.



<!doctype html>
    <link href="styles.css" rel="stylesheet">

    <h1>Welcome to My Web Page!</h1>

. location {
  color: purple; 
Scott Zangraft
Scott Zangraft
3,084 Points

Your css should just look like ''' h1 { color: purple; } ''' Keep working on it and it'll start being easier.

2 Answers

Hi Trevor

In the style.css file you just write:

h1 {
 color: purple; 

There's no need to feel silly, we've all been there, just keep going and you'll start to get the hang of it. Good luck!

Trevor Getten
Trevor Getten
1,708 Points

Thank you very much, that fixed it. This is a totally new experience for me but am looking forward to thee learning ahead.

Much appreciated.