Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

p { color:#111111 }

Hi there, the task is: style p in black using a hexadecimal code. This is my code: p { color:#111111 }

However, the answer is stated as wrong. Can someone help? Many thanks!

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

h1 {
  color:#ffffff
}

h2 {
  color:#ffffff
}

p {
  color:#111111
}

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

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

4 Answers

Alexandra Barnett
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexandra Barnett
Front End Web Development Techdegree Graduate 46,473 Points

Hi Nicole!

You're close! The hexadecimal value for black is #000000 rather than #111111. This can also be shortened to #000 as the zeros are repeated:

p {
    color: #000;
}

Hi Nicole Black in hexadecimal is #000000

p {
  color:#000000
}
Robert Lyon
Robert Lyon
7,551 Points

As stated above black is #000000. Also, watch out for missing semi-colons (;) at the end of your line of code

Hello!

Black in Hexadecimal is #000000

Keep it up!