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

Charlie Morris
Charlie Morris
971 Points

How do you do the second step?

What specific elements does it want?

3 Answers

Hi Charlie,

The question is giving you clues on what elements it is referring to.

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

'p' is the selector for the Paragraph element.

Here is the solution to the second step of the challenge.

p {
  color: #000;
}

'color' is the style attribute you are effecting. Then you add the '#' before the Hexadecimal value. I'd explain hex values, but it might be easier to just follow this link... (https://en.wikipedia.org/wiki/Hexadecimal)

Charlie Morris
Charlie Morris
971 Points

Thankyou :) just put in the wrong number

do you know how to style p elements in css?, for example p { color: #FFF; } would style the p elements with the hex color white

Youssef Azaaz
Youssef Azaaz
2,647 Points

Try this

p { color: #000000; }