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

Set the color of paragraphs to black using a hexadecimal value.

how do you do this? and if possible dont just give the answer but kinda explain why.

7 Answers

a great place to reference is the mozilla developer network for HTML and for CSS. Specifically go to the "exhaustive reference" section - which is aptly named;)

From there you can check out which CSS property changes font color, background color, etc...

You said you wanted the explanation, but if you want more help than that, just let me know!

its possible of course. you can assign your paragraphs' color black in your css code like this:

p {

color: #000;

}

awesome thanks!

awesome thanks!

not at all! have a nice codding!

no this is even better than an explanation.. idk why i didnt think about this! LOL thanks a lot i appreciate it

no this is even better than an explanation.. idk why i didnt think about this! LOL thanks a lot i appreciate it

You're welcome. Also, most of your time as a developer will be spent looking through documentation, so don't feel bad about having to do it now! That's our life!

yezzir!

you can change whatever you want in your CSS code. Every HTML element has some properties like color, background-color, size, style etc. firstly, you should look which element do you need to add some spesific style and then you should decide to change properties. you said before, black color is #000 in hexcolors. and you said that you need to change paragraph color (font color) to black, and this is how you change it. also if you want to learn more, you need to follow the tracks about html and css. good luck!