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

HTML Introduction to HTML and CSS (2016) Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

Chidiebere Ekeh
PLUS
Chidiebere Ekeh
Courses Plus Student 959 Points

how do i set color property of h1 without quotes?

csmint.links@yahoo.com

index.html
<!doctype html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>

    <h1>Welcome to My Web Page!</h1>

  </body>
</html>
styles.css
color: purple

It 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.

2 Answers

U 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
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Chidiebere Ekeh

Welcome 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.

:) :dizzy: