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

General Discussion

question in css quiz


there is a question in css quiz that I can't answer (I tried everything - that is so frustrating!):

the question is : "Add the class "important" to the CSS rules and make that class color red. Then add that class to the last paragraph."

Thanks so much, Pierre

7 Answers

Can you give the exact location of this lesson?


CSS Foundations > Selectors > Review of CSS Selectors

Can you give the exact location of this lesson?


CSS Foundations > Selectors > Review of CSS Selectors
J.T. Gralka
J.T. Gralka
20,126 Points


It would help if you included the code that you've tried to submit for this code challenge so that we can help guide you towards the correct solution. Try to post submission that you've tried, that way we might be able to point out what might fix about it.

As a suggestion, you should check out the Markdown Cheatsheet below the "Reply to this discussion" box so that your code is formatted appropriately for forum readers. In general, you'll want to format your code blocks by prepending four spaces to each line. Below is an example of how to use Markdown to format your code for a forum post.

body {
    color: #F00; /* This sets the text color of the body to red. */

Hopefully you can give us an example of the effort you've made at solving this code challenge so that, like I said, we could help you correct any issues you're experiencing.

I look forward to hearing back from you!



Luke Buśk
Luke Buśk
21,598 Points

I assume it will be something like this...

Go to Your CSS file and type:

.important {
 color: red;

Then switch to the HTML file, find the last paragraph (the last thing with "p") and add a class to it so it looks like this:

<p class="important">some text</p>

That should work, remember that You can either create a class first in CSS file and apply it to the HTML or vice versa.

Location where this problems appear is in :

HTML > Forms > Code Challenge: HTML Mastery

Sorry, I was wrong (It is the morning, not very awake...) Location where this problem appears is :

CSS Foundations > selectors > Code challenge

Thank you Lukasz, your answer was right. I just forgot that I could update the HTML file too. I was focused only in the css code.

Thanks so much to you and to others users of this forum!