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

I've done the change color with css task exactly as required but it still gives me a bummer?

I've followed the hints and copied it exactly but it still gives me a 'bummer' response. Unsure of how to continue.

index.html
<!doctype html>
<html>
  <head>
    <h1 class= "tag name"> Hello,i am Shivon.</h1>
  </head>
  <body>

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

  </body>
</html>
styles.css
h1 {
  color: purple;
}

1 Answer

Hi Shivon,

The reason you're not passing the second challenge is because in the index.html document you've added an h1 tag with the text "Hello, i am Shivon.". I imagine that's thrown the test off because there's an h1 element present that it wasn't expecting (and it doesn't have any code to tell the test how to account for that).

Just remove that statement, and you'll be fine.

And in the future, I find it's best to just follow the instructions for these code challenges. No more, no less. I think the folk who write the tests do as much as they can to account for ways in which students will unexpectedly write their code, but they can't account for everything (especially when you consider all the tests they have to write for the many code challenges on the site). As such the challenges can be pretty strict on what's expected.