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

What am i to look for when changing the h1 tag to purple? I do not see where i am supposed to insert without quotes.

Change property elements to purple without quotes. What does this mean

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

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

  </body>
</html>
styles.css

5 Answers

Catarina Nunes
Catarina Nunes
15,206 Points

You need to make the change of the h1 color in the style sheet h1 { color: purple; }

Thank You. It worked

h1 {
    color: purple;
}

Use the color keyword purple, which is equivalent to #800080.

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,705 Points

I'm not sure what it means by not using quotes either.

The only scenarios I can think of where quotes are used are where we are using inline styles i.e. styles that are used as values in a HTML style attribute.

Or even in CSS itself you could use "" for a CSS content style rule.

Hey Jonathan,

The prompt is instructing you to assign the color purple to the h1 tag. By not using quotes, you are to use the color keyword purple.

As presented above:

h1 {
    color: purple;
}

Notice how there are no quotes around the word purple?

This prompt could be in place to prevent any confusion if the user is familiar with Strings and assignment operators but not CSS.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,705 Points

Fair dos. I was just trying to look at all scenarios. :-)

this is the worst website for teaching programming hands on deck for only knowing how to take money from people from where the hell am i supposed to know that i should put this code : h1 { color: purple; }

if i have no prior knowledge what so ever ? she didnt even explain how to do it , ur challenges are the worst i have seen and your teaching methods are very bad ,i feel like i have wasted 600$ for nothing worst decision i have ever made .

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,705 Points

Hello Jihad.

Generally the answers for the code challenges are given or hinted at in the preceding video. Most keywords and values in CSS are not given in quotes. But this is something you will learn as you practice with CSS more and more.

Hope this helps. :)

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi Jihad!

At about 2:22 seconds into this video Treasure begins explaining how to select HTML elements and add CSS styling. There is also an example using:

color: yellow;

The idea here is that you can extrapolate the knowledge gained from this example to apply it to another problem.

Also note, that when you post here you are (for the most part) addressing other students. If you would like to contact Treehouse directly, then I'd suggest clicking the "Support" link at the top of this page :arrow_heading_up: for instructions and options on how to contact them. Good luck in your endeavors! :sparkles:

Kevin Korte
Kevin Korte
28,109 Points

Treehouse has done me well over the past 3 years, I came here knowing absolutely nothing as well. Sorry you haven't had as good of results as I have. Treehouse support at help@teamtreehouse.com will be further able to address your concerns.

jennifer i understand that they want us to scratch our heads and whatsoever but this is not the way to do it for beginners this is my 1st time learning this stuff , i started learning ios development on xcode 2 weeks ago and i dropped it because the challenges are so hard and i could not understand anything , iam not stupid and i grasp very easily but the way it is structured it is absolutely absurd for beginners , at least for the beginning of the course make it easy for us to grasp and she did not explain how to do it step by step in my opinion trying to learn it here will take me double the time trying just to understand how it is structured . about 2 month ago i downloaded javascript pdf file i read 8 chapters in about 3 hours i understood it all . i spent about an hour here just trying to figure out the 1st challenge haha this is a waste of time