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 trialChidiebere Ekeh
Courses Plus Student 959 Pointshow do i set color property of h1 without quotes?
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
color: purple
2 Answers
Abdullahi Abdinasir Ali
9,520 PointsU should write the tag h1 first u should have opening closing bracelet ({}) after h1 and put ; before purple. h1{ Color:purple } Hope that helps and happy learning
Jason Anders
Treehouse Moderator 145,860 PointsWelcome to Treehouse,
I recommend you go through the Digital Literacy Track. This track
covers basic computing principles and foundational knowledge of the Internet and World Wide Web
and will be very helpful in achieving the best learning experience on Treehouse. Coding can be challenging, but this track helps provide much of what is needed to build a better and more clear understanding of the materials.
:)
Mike Wagner
23,559 PointsMike Wagner
23,559 PointsIt would probably be better for you to search the color property yourself in the CSS documentation or with a quick Google search, but given the simplicity of it, I'll give you a bit of direction.
Your
styles.css
needs to have an h1 element selector, in which you will set your color property much like you appear to be trying to do in your provided code. Then you need to end the property: value line with a semicolon.