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 trial
How do I add the property to change the color of the H1 to purple
Im new to this...
<link href="styles.css" rel="stylesheet">
<h1 color=purple>Welcome to My Web Page!</h1>
Christopher De LetteCourses Plus Student 7,139 Points
In your previous post myself and one other community member answered this question without giving the direct answer. I think this is the best way to learn any new subject, especially coding. We are more than happy to help and to get you going i'll post the answer. Keep trying and researching and you'll definitely get the syntax/lexicon/semantics :)
Take care and Happy Coding!
BTW if you are stuck please continue to use the community as we are here to assist.
Brandon Benefield7,739 Points
The proper way to do this is in your CSS. Target your h1 tag and set the color property to purple.
You should only have one h1 tag per html page. So until you get into something more advanced, there is no need to add a class or id to any h1 tag. Someone can correct me on that if I am wrong.