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

how can I change the color of the h1 tag?

Hello. How can I change the color of the h1 tag in task 2 of 2. thanks.

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

8 Answers

Zachary Pimentel
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Zachary Pimentel
Front End Web Development Techdegree Graduate 18,393 Points

Click on the CSS sheet that the question gives you and select the h1 element and type out the curly braces like this: h1{} . Then write 'color:purple;' to change the color of the h1 text to purple. Don't forget the semi-colon!

You don't. Why do you want to? The color is to categorize different types of commands. I hope this was helpfull. Can you report this best answer for me in case this was helpful? Please? Please?

Cool. Can you best answer it for me please? It's the only one so it's the best and worst. Technecly. How do you spell Technecly? I looked at the challenge and I don't know. I used to. Sorry

It's still the best and worst! lol.

but, I did not get my answer!!

You spoiled the fun!!!!!!!!! :)

Zachary, I really appreciate your help.

Zachary, is that what u said? h1 {'color:purple;}

Zachary Pimentel
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Zachary Pimentel
Front End Web Development Techdegree Graduate 18,393 Points

Don't include the ' ' in your code, I just used them in my post. If you remove the ' from your code I think that should work. From the stuff I've been doing on the site you format put the stuff in the curly brackets on the next line, so you would write:

h1{ color:purple; }

but the color:purple; part would be on a line in between the curly braces. But I think it would work without reformatting it.