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

Anya Kore
PLUS
Anya Kore
Courses Plus Student 4,379 Points

Please, help me to understand how to set the color of paragraphs to black (for ex.) using a hexadecimal value. Thanks!

The color of paragraphs using a hexadecimal value.

Dov Breuer
Dov Breuer
8,268 Points

p { Color: #000; }

1 Answer

Ana Kore u should understand how to use HEX values. Do u understand why Dov Breuer gave u only #000 instead of #000000 ?

U could also write is as:

background: black;

or u could specify it in a rgb value like so:

background: rgb(0,0,0);

or:

background: HSL(0, 0%, 0%);

happy coding ! :)

Anya Kore
Anya Kore
Courses Plus Student 4,379 Points

As I understood, #000 and #000000 for black, #fff and #ffffff for white - is the same. Thanks for your answer :) will do my best