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 trialWang Lei
2,766 Pointshow 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>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
2 Answers
Tanja Schmidt
11,798 PointsHi, 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
Treehouse TeacherYou're correct! There's no code in styles.css. This is because your'e now the coder 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!