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

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.

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

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

h1 {
  color: blue;

h2 {
  color: purple;

2 Answers

Jason Anders
Jason Anders
Treehouse Moderator 145,858 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!