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


Set the color of paragraphs to black using a hexadecimal value. Is there a problem with my p?

a { text-decoration: none; }

wrapper {

max-width: 940px; margin: 0 auto; }

logo {

text-align: center; margin: 0; }

h1, h2 { color: #fff; }

p { color: 00000; }

4 Answers

vishal fulwani
vishal fulwani
7,573 Points

hey DeAndre bro,

Yes you forgot to add (#) before hexadecimal value. make it #00000 (#000) and it'll work. i was doing this type of mistake in my past. keep practicing.

Best of luck

Jason Anders
Jason Anders
Treehouse Moderator 145,857 Points

Hi DeAndre,

You've pretty much got it, except you are missing a 0 (you only have five and hex colors need 6 or 3 for shorthand).

just use #000000 or #000 and you're good to go.

Jason :)

I tried both, short and long. I am not sure what the text editor is asking for.

Jason Anders
Jason Anders
Treehouse Moderator 145,857 Points

In the code you posted above, you are missing the # sign before the hex number. Sorry, I didn't mention that in the first response.

Jason Anders
Jason Anders
Treehouse Moderator 145,857 Points

If that doesn't solve the problem, let me know. :)

p { color: #000000; }

It worked!! by any chance do you know what I did wrong? I am very new to coding.

Jason Anders
Jason Anders
Treehouse Moderator 145,857 Points

You just forgot the number sign(#) before the numbers. (A common mistake and easy to miss). You had 000000. Should be #000000

Just remember, if you're using RGB colors, it is just numbers with no sign (eg 255, 23, 2). Hexadecimal colors need to be declared with the # sign (eg #df3345).

Hope that helps. Happy Coding! :)

And don't worry. If you ever get stuck, the forum is always here to help.