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

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.....

index.html
<!doctype html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>

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

  </body>
</html>
styles.css

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.

Jonathan,

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.