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

Bummer! Why?

Bummer! Double check that you've styled paragraph (p) elements to be black with a hexidecimal value.

Whats wrong with my code?

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: #ffffff
}
Luca Cunico
Luca Cunico
Courses Plus Student 14,196 Points

Hello,

black in hexidecimal is #00000. #ffffff is white.

2 Answers

Steven Parker
Steven Parker
231,198 Points

It looks like you have the wrong color code.

As Luca pointed out, the color code for black is #000000, or the shorthand version #000.

Kelvin Ribeiro
Kelvin Ribeiro
2,814 Points

You're missing the Semicolons (;) at the end of the colours.

Steven Parker
Steven Parker
231,198 Points

:information_source: Semicolons are only necessary between properties.
Having one after the last (or only) one is good practice but causes no problem if absent.

Kelvin Ribeiro
Kelvin Ribeiro
2,814 Points

:information_source: True but I assumed the website checks if you inputted the right code by comparing to the code they have. If that's the case I'm pretty sure the semicolons are the ones missing. Even though he wrote black in here, on the challenge itself is telling him to turn it white, so that shouldn't be the problem.

Steven Parker
Steven Parker
231,198 Points

The correct color code will pass the challenge. Try it yourself and see.

Kelvin Ribeiro
Kelvin Ribeiro
2,814 Points

i just did, the code was h1, h2 { color: #fff; } The question is asking to make it white.

Steven Parker
Steven Parker
231,198 Points

Read the original question again, it's about a different task.

Kelvin Ribeiro
Kelvin Ribeiro
2,814 Points

yeeh i realized it said black on the question. I thought that by clicking "view challenge" i'd be sent to the actually challenge the student was having problems with and there said white.