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 Customizing Colors and Fonts Write Hexadecimal Colors

How do you set the color of a paragraph in a css file? I don't really understand the requirement

I don't understand exactly what the questions requires me to do. It says I should change the color of paragraphs to black.

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
  color: #fff;
}

Thank you very much, that's what I wasn't understanding. Cheers!

1 Answer

p{
  color: #color key code here ;
}

This will change the color in all of your paragraphs. If you are targeting a specific paragraph then you might consider using an id selector which would be like this:

#someId{
  color: #color key code here ;
}
p{
  color: #000;
}

this will change your font to black.

Jay Padzensky
Jay Padzensky
4,731 Points

Note that you can use keywords, hex, or Red Green Blue color values (rgb) to change colors. Check out this link for some additional information!