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

Les Sula
PLUS
Les Sula
Courses Plus Student 1,576 Points

What are you talking about?

Can someone please help me on this? I have no idea what it is that I am being asked to do. What paragraphs? Thank You.

css/main.css
h1, h2 {
  color: #fff;
}

a {
  text-decoration: none;
}

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

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

3 Answers

The challenge says select all paragraphs and give them a black color using a hex value.

Code removed as it provided the answer to the task at hand

The word p selects all "<p>" elements or "paragraph" elements on your html file

Staff Edit - Please refrain from providing the direct answers to code challenges.

Rob Allessi
Rob Allessi
8,600 Points

Hi Les,

The code challenge task is asking you to select all paragraphs and then change their color. As Marco explains above, the word/letter 'p' selects all paragraph elements of the HTML file.

Look at the H1, H2 and A elements, those examples above show how you can target all existences of a type of element within your HTML and modify it via CSS. Carry out the same action for paragraphs by targeting them all with the 'p' (no apostrophes) and the code that would modify their color via hex.