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

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!