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 trialJohnathon Wright
3,579 PointsSet 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
Xander Taylor
12,390 Pointsa 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!
nobodyinhere
3,418 Pointsits possible of course. you can assign your paragraphs' color black in your css code like this:
p {
color: #000;
}
Johnathon Wright
3,579 Pointsawesome thanks!
Johnathon Wright
3,579 Pointsawesome thanks!
nobodyinhere
3,418 Pointsnot at all! have a nice codding!
Johnathon Wright
3,579 Pointsno this is even better than an explanation.. idk why i didnt think about this! LOL thanks a lot i appreciate it
Johnathon Wright
3,579 Pointsno this is even better than an explanation.. idk why i didnt think about this! LOL thanks a lot i appreciate it
Xander Taylor
12,390 PointsYou'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!
Johnathon Wright
3,579 Pointsyezzir!
nobodyinhere
3,418 Pointsyou 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!