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

Joshua Bearden
Joshua Bearden
2,286 Points

The video does not give enough information for me to write the css in order to change the color. styles.css is blank

I have code in the html section to work with, but css is blank. I did not get enough information from the video to know what all I need to write to change the color.

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

    <h1 class="tag name">Welcome to My Web Page!</h1>

  </body>
</html>
styles.css
<h1 style="color:purple;">
</h1>

1 Answer

Wade Christensen
STAFF
Wade Christensen
Treehouse Teacher

Hi Joshua,

The information you want is in the second video at about 2:15 seconds in. That's this video here: https://teamtreehouse.com/library/introduction-to-html-and-css/-getting-familiar-with-html-and-css/-building-web-pages-with-html-and-css

Because you're changing the color of an element, you'll just define that element rather than a class, but the video example should help you out.

Hint

h1{
    //do some stuff here
}

I hope that helps.