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

challenge 3 of 3

how do I set the h1 element to green?

yea I finally figured it out, didn't know I had to remove the CSS in order to do it lol

1 Answer

You can do it inline, embedded or externally.

inline

<h1 style="color: green">heading 1</h1>

embedded

put this in the head

<style>
h1 { color: green; }
</style>

external

you'll typically want to do this method - this will go in the head as well

<link rel="stylesheet" href="your-styles.css">