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

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

penmetsa venkata subbaraju
penmetsa venkata subbaraju
413 Points

WRITE HEXADECIMAL CODE TO WHITE FOR HEADLINES

I HAVE SET BOTH HEADLINES TO WHITE THEN Y IT IS SHOWING ERROR

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

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

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

h1,h2{color : #111111; }

4 Answers

Holger Liesegang
Holger Liesegang
50,595 Points

Hi penmetsa venkata subbaraju ,

The hexadecimal value for the color white is #FFFFFF (black would be #000000).

Hence the solution for "Set the color of first and second level headlines to white using a hexadecimal value." would be

h1, h2 {color : #FFFFFF};

there are 8 f not 6.

there are 8 f not 6.

there are 8 f not 6.

there are 8 f not 6.

penmetsa venkata subbaraju
penmetsa venkata subbaraju
413 Points

sorry i confused n wrote it to #111111; thanks alot for your quick response.

David Stocum
David Stocum
10,120 Points

Your hex value doesn't represent the color white, that's the problem.

Remember, hex RGB values range from #000000 (black) to #FFFFFF (white); #111111 is an extremely dark gray.