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

what is a CCS

help

index.html
<style>

h1 {
  color: blue;
}

</style>
  <h1>Nick Pettit</h1>

4 Answers

Chris Reeder
Chris Reeder
11,358 Points

Did you mean CSS?

It stands for Cascading Style Sheet. It lets you modify the look and feel of your html elements in one area rather than individually modifying each html element.

If you check out the Basics Course on CSS you'll find everything you need to know.

Have fun,

Chris

Grace Kelly
Grace Kelly
33,990 Points

CSS (short for Cascading Style Sheets) allows us to control how HTML elements are styled and displayed on the screen. For example if you want a black background with white text we do this with CSS, you can read more about this here:

http://www.w3schools.com/css/css_intro.asp

Now, looking at your code, you have everything done perfectly except the color of the text needs to be green, not blue :)

Hope that helps!!

Everything u have done is correct..but the question ask u to make the h1 element's color 'green' ...NOT blue So that should fix the error...if i helped please rate my answer as the best

Craig Campbell
Craig Campbell
14,428 Points

Not sure what your question is, but that code will turn any text in an h1 tag blue rather than the default black. However it would be better (separation of concerns) to have a separate file. IN that case, make a file this text h1 { color: blue; }

and save it as "style.css" or whatever filename.css you want. Then your html should look like this:

<link rel="stylesheet" type="text/css" href="style.css">
<h1>Some text here</h1>

note that this is a LINK tag and not a style tag! So the link tag goes and finds the css file and incorporates that code into your html document. But you'll need the .css file to be in the same directory (folder) as your html file.