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 trialRamin majdi
Courses Plus Student 41 Pointshow 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.
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
8 Answers
Zachary Pimentel
Front End Web Development Techdegree Graduate 18,393 PointsClick 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!
markhsia
2,139 PointsYou 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?
markhsia
2,139 PointsCool. 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
markhsia
2,139 PointsIt's still the best and worst! lol.
Ramin majdi
Courses Plus Student 41 Pointsbut, I did not get my answer!!
markhsia
2,139 PointsYou spoiled the fun!!!!!!!!! :)
Ramin majdi
Courses Plus Student 41 PointsZachary, I really appreciate your help.
Ramin majdi
Courses Plus Student 41 PointsZachary, is that what u said? h1 {'color:purple;}
Zachary Pimentel
Front End Web Development Techdegree Graduate 18,393 PointsDon'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.