Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introduction to HTML and CSS Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

Jonathan Seguin
Jonathan Seguin
1,894 Points

the style.css is empty, should there be code in there to change color to purple?

been trying to figure this out for a long time, please respond.....

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

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


4 Answers

anil rahman
anil rahman
7,786 Points
<h1>Welcome to My Web Page!</h1>

Change p tags to h1 first

h1 {
  color: purple; 

Then add your own css into the blank page. It's blank because the css to enter was so short and the html has only one element currently.

Jonathan Seguin
Jonathan Seguin
1,894 Points

I thought about it, not different than definition of change meaning to make something different. Should have said "create code within css to make color of h1 purple" I guess I'm in The wrong learning website.

Jonathan Seguin
Jonathan Seguin
1,894 Points

I can see my lack of real life knowledge is clashing with my ability to learn on treehouse.


In short--yes, the challenge is asking you to add code to the styles.css file to change the h1 heading to purple. "Change" means to change the color from the default (black) to purple. Don't get too hung up on the verb; you are "creating" CSS to "change" the color. It's as simple as that.

So, in step 2 of the challenge, click to edit styles.css, then add the brief bit of code to "change" the color to purple.