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

Rick Wise
Rick Wise
4,034 Points

Hello, I'm just trying to change my white text to purple.

I'm just starting out and I am trying to get the color from white to purple and I must have missed what I need to put around it to get HTMl to understand it.

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
h1 {
  color: blue;
}




h2 {
  color: purple;
}

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,680 Points

Hi Rick. Welcome to Treehouse.

You've got the correct CSS, but also some CSS that shouldn't be there.

If you look at the HTML, there is no <h2> tag, and the instructions for the challenge say nothing about altering an <h2> element, so that needs to be deleted.

Next, the challenge specifically states:

Change the color of the h1 tag to purple

But you have changed the color of the <h1> to blue. Just fix that rule up and you're good to go.

:) :dizzy:

Rick Wise
Rick Wise
4,034 Points

Hey Jason,

Thanks so much! I actually figured out I was getting the page and and question...twisted? Dont ask! Haha! Either way, I got it. Thanks so much for the quick response. This whole thing has been such a great experience so far!