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

Wang Lei
Wang Lei
2,766 Points

how to work on the 2nd task?

Sorry. In the Styles.css page there is no coding? How it mean I have to code in order to change the color? Take 1 seems easy because I just need to change the key parameter from p to h1. Because I am just at the beginning of the course, I am wondering whether I well interpret the quiz.

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

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


2 Answers

Tanja Schmidt
Tanja Schmidt
11,798 Points

Hi, that the css page is blank is totally fine - it's expected that you write your own line of code in there. Here's the css rule to change the color of your h1:

h1 {
color: purple;

Happy Coding! :)

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

You're correct! There's no code in styles.css. This is because your'e now the coder :smiley: I'll show you what you need and then walk you through it:

hi {
  color: purple;

We select an HTML element simply by using the name of the element (or tag). In this example, we're using the h1. Any code we write to affect our h1 should be put inside of curly braces. Now, we're going to change the text color to purple. And we write the property we want to adjust (color), follow that with colon, write the value of the property we want to change, and then end it with a semicolon.

In this case, h1 is our selector. Our property is color, and the value for the color property is purple. Hope this helps! :sparkles: