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

I am trying to pass a nodule that wants me to change the h1 heading color to green.

<style> h1 { color: green; }

</style> <h>Loreta Pittman</h>

index.html
<h1>Nick Pettit</h1>

2 Answers

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Hi Loreta!

When doing your styling inside of the html document you need to use a style></style tag (just add the brackets). You can then add the styling inside of the tags. Add the styling tags above the h1 tag and you will be good to go, good luck and have fun learning!

Roy Penrod
Roy Penrod
19,810 Points

Jonas is spot on with his answer. This is what it would look like:

<style>
  /* This is where you would put the CSS to change the color */
</style>

<h1>Nick Pettit</h1>