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

Which are the paragraphs that I need to change color to black in the CSS Hexadecimal colors part of Creating a site?

I'm at the hexadecimal colors part of the css lessons in Making a website, it's asking me to change colors to black , I know how to do that, but I don't know what's the selector id called for the paragraphs

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

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

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

3 Answers

Jeff Lemay
Jeff Lemay
14,268 Points

p

Same as the tag you use in html ( minus the two angle brackets < > ).

<p>Make me black!</p>
p {
    color:black;
    color:#000000;
    color:#000;
}

Each of those css properties will change the font to black, choose one.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

The HTML tags for paragraphs are <p> ( or just p in CSS).

SAMUEL LAWRENCE
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

Hi Jason, in CSS to target an element in the HTML file you simple type the name of the tag without the angled brackets, or type selectors. Example to target the <p> paragraph element, just type p followed by two curly brackets.

p { write rule here: color; }