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

How do I create an H1 sector to set the color property to purple

Im less than an hour into my coding journey and I am unsure how to add this...

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

Rebecca Rosso
Rebecca Rosso
1,716 Points

Hi Aiden, I'm facing this same problem an hour into my coding learning journey as well! Did you find out the answer? I'm not understanding the answers from others. Are you?

2 Answers

Christopher De Lette
PLUS
Christopher De Lette
Courses Plus Student 7,139 Points

HI Aidan Robertson

In your CSS document, target your h1 element with a selector and add your declaration with property value.

The journey has just begun and you'll find it rewarding if you continue forward!!!

Take care and Happy Coding!

Julie Dowler
Julie Dowler
7,851 Points

Looks like you've already made an h1 sector just fine. Just go into the CSS to make it purple.

In what format do I add that to the CSS? would I need a sector to specify H1?