Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

naima haret
39 Pointschange the color tag of h1 to purple
change the color of h1 to purple
<!doctype html>
<html>
<head>
<link href="styles.css" color:purple; rel="stylesheet">
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
h1 {
color: blue;
}
1 Answer

Nils Kriedner
33,897 PointsHi Naima,
the <link> tag in the head of your html document ist not used for styling. You use it to link to your stylesheet, so the effects of the stylesheet will take effect in your html document.
So first of all delete the color attribute from the <link> tag!
Then in your css declaration you did a good job declaring the color for the h1. The syntax is correct, but you declared "blue" instead of "purple" which is what is asked in the challenge.
So the second thing to do: Change the color attribute to "purple".
Then everything should work!
Happy coding!
PS: You can upvote my post and/or mark as "best answer" (at the bottom of my post) if it helped you. :-)
Brandon Gormley
6,147 PointsBrandon Gormley
6,147 PointsHey Naima,
The color attribute will not work in the link tag. For inline CSS it must be placed inside a style tag such as
<h1 style="color:purple;"> Welcome to My Web Page!</h1>