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 trialRoni Lubwama
3,456 PointsHow do i change the color of the h1 tag to purple?
Hi there, needed the code changing the h1 tag to purple.
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
8 Answers
jacobproffer
24,604 PointsHey Roni,
You can change the color of the H1 with the color property.
h1 {
color: purple;
}
You might want to re-watch some earlier videos or check out the Mozilla Developer Network.
Newman Newman
Courses Plus Student 123 Pointswhy would treehouse set up a task challenge that you didn't cover? thats not fair... it took me a while to figure out also...why such a hassle?
Ellis Walker
3,325 PointsSame here! After reading this...I'm thinking, "That's what I'm supposed to do....that's easy." No explanation. I thought we were to edit the html file, not the css file.
John Park
1,449 PointsEven in the earlier videos, I don't recall them going over this specifically and I think that's what threw me off about this challenge. I understand that CSS is used to format the HTML, but how to type in the color property on CSS section wasn't mentioned, so thanks!
A X
12,842 PointsJohn Park: Treasure didn't explain how to do this, so you're not alone. She just gave an example without explaining what she was doing.
Emmanuel Deng
1,484 PointsTreasure didn't explain it at all. Is there anyone at Tree-house who can answer this question?
PAULA YOUNG
7,138 PointsI just experienced the same issue. No explanation.
omer cohen
2,549 Pointsthis is good website but why didnt they explain us this before the challenge ?
Vijayalakhsmi Yeddula
Front End Web Development Techdegree Student 395 PointsTech degree videos are with inappropriate explanations. I like the one with $49/month plan. It was from basics. Basics are not covered here. I am dissappointed.
Jude Hotbrass
55 Pointsvery easy <hi style="color: purple"> my home<h1>
morning rangel
109 Pointsthank you
Manuel Trillo
1,592 PointsManuel Trillo
1,592 PointsThank you!
marcus coffey
339 Pointsmarcus coffey
339 PointsThank you!