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

Lois Fuller
PLUS
Lois Fuller
Courses Plus Student 210 Points

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

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
#purple;

4 Answers

In 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

          h1{
color:purple;
}

in your css file you would write the following -

h1 { color: purple; }

I'm a bummer (((

Don't forget the semicolon after color:purple ;