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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

why is my colour not changing to blue?

It looks like I followed the instructions on CSS but can't figure out where i have gone wrong?

index.html
<style>

  <h1> {
  color: blue:
  }
</style>
<h1>Mary Chati</h1>

Put a semicolon after

color: blue;

You put a ":" which probably is the mistake.

hi Thanks. I figured out that I put <> on h1. Its worked now.

1 Answer

Steven Parker
Steven Parker
231,248 Points

Contratulations on resolving your issue! :+1:

As you discovered, CSS selectors use only the tag name and not the angle brackets that would surround the tag in the HTML.