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

setting color of h1 element to green

It looks like my code is matching what the video tutorial shows for adding color to an h1 element, but it's not working and I'm not quite sure where the mistake is? Are there any common mistakes that beginners make in this code challenge?

Stone Preston
Stone Preston
42,016 Points

please post the code you are using. you will have to format it with markdown to get it to appear in the forum correctly. See the tips for asking questions video on the right side of the page for information on formatting

1 Answer

<h1> I am h1 tag </h1>

css:
h1 {
color: green;
}

You can also add an id on the tags.

<h1 id="head1"> I am h1 tag </h1>

css:
#head1 {
color: green;
}

Hope this helps. :)