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

CSS How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Val Handy
Val Handy
2,395 Points

Having trouble passing the CSS style tag challenge on Front End Web Challenge 1.

The editor preview shows that I have completed the task correctly. Even though I included the style tags, I have a red Bummer message that tells me I forgot the style tags.

index.html
<style>

  h1{
  color: blue;
  }  
  </style>
    <h1>Val Handy</h1>

3 Answers

CSS rules (inserted internally) are supposed to be found within the head tags. When I see the h1 tags appear immediately after the style tags, it makes me think that the CSS rules are not occurring within the head of the document.

In other words, be sure that the CSS rules appear in the HEAD, and that the content (h1, p, div, and all that good stuff) appears in the BODY of the document. Let me know if this helps you.

Val Handy
Val Handy
2,395 Points

This helps. Thanks.

you're welcome.