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 trialLois Fuller
Courses Plus Student 210 PointsChange the color of the h1 tag to purple. Please if anyone is kind enough to explain this to me.
I didn't find the video explained it very well.... could somebody possibly explain this too me. I'm not sure where to even start.
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1> Welcome to My Web Page!</h1>
</body>
</html>
#purple;
4 Answers
Nazar Starantsov
18,109 PointsIn your CSS you need to define h1 tag somehow. There are a few ways to to this. The easiest way is defining by tag. // h1 { color:purple }But there are a lot of ways to do that. P.S. I'm from Moskow so sorry if you found some mistakes
Nazar Starantsov
18,109 Points h1{
color:purple;
}
Valeriia O
Courses Plus Student 17,625 Pointsin your css file you would write the following -
h1 { color: purple; }
Nazar Starantsov
18,109 PointsI'm a bummer (((
Nazar Starantsov
18,109 PointsDon't forget the semicolon after color:purple ;