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

sean farrelly
sean farrelly
1,614 Points

How to create a paragraph with the hexadecimal value black.

How to create a paragraph with the hexadecimal value 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;
}
(p){ color:#6a647b;
}(/p)

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! First, I don't know where you're getting the parentheses from, but they aren't needed. It also seems that you might be getting HTML and CSS mixed up a bit as you have what looks like the ending tag for a paragraph (except that it's in parentheses instead of angle brackets). This is also not needed.

In hexadecimal FF is equivalent to the decimal value 255. So if you look at the rule above, you've selected h1 and h2 and assigned a color of #FFF (which is white). This is equivalent to rgb(255,255,255). The color white is produced as the reflection of all colors simultaneously. The color black is produced when all colors are absorbed simultaneously in the presence of a light source. Otherwise, it is the color in the absence of a light source.

So given this information:

p {
   color:  #___;
}

I will leave you to figure out the three numbers that give the hexadecimal for black :smiley: