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 trialTakeiya Smith
72 PointsChanging color of h1 tag
Hi, I'm not sure how to change the color of the h1 tag. I'm not sure where to type purple.
<!doctype html>
<html>
<head>
<link href=purple rel=purple>
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
h1 {
color: blue;
}
1 Answer
Nick Renteria
10,258 PointsHi Takeiya. I think the problem is coming from the way you linked your stylesheet in the head of your html. You want it to look like this:
<link rel="stylesheet" href="styles.css">
The href value might be slightly different depending on the file path for your css sheet. for example, if your css sheet is inside a folder called "css" then you would have an href value like this:
<link rel="stylesheet" href="css/styles.css">
Once you have the style sheet properly linked, the way you have your h1 property formatted in your styles.css sheet looks like it should work fine, you would just type purple where you have blue after the color. I hope this helps!