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

Jimel Atkins
Jimel Atkins
2,093 Points

Set the color of paragraphs to black using hexadecimal values?

Not sure what to write here. Would it be p { color: ; } and the hexadecimal value for black in that space?

css/main.css
a {
  text-decoration: none;
}
a {
  color: #ffffff;
}
h1,h2 {color: #fff;}

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

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

2 Answers

Gwen Sims-Williams
Gwen Sims-Williams
10,898 Points

Hi Jimel, you've got it right. Any of following will turn the text of your paragraphs black:

p { color: #000; }

p { color: #000000;}

p {color: black;}

Jimel Atkins
Jimel Atkins
2,093 Points

thanks Gwen! really helped !

Are you asking what the hexadecimal value for black is? If that is the case it is #000000 or #000 for short. If not, could you clarify your question?

Jimel Atkins
Jimel Atkins
2,093 Points

was asking if i use (p) as the selector but it worked! thanks so much