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 CSS Basics Basic Selectors ID and Class Selectors

Finally, target experience with an ID selector. Add a background-color property and set the value to lightsteelblue.

Finally, target experience with an ID selector. Add a background-color property and set the value to lightsteelblue.

2 Answers

Hi Rohith!

Task 1:

<header class="main-header">

Task 2:

/* Complete the challenge by writing CSS below */

.main-header {
  background-color: orange;
}

Task 3:

 <h1 class="main-heading">Developer Diane: Resume</h1>

Task 4:

.main-heading {
  font-size: 72px;
}

Task 5:

<section id="experience">

I just showed you the first 5 tasks because I assume you got that far (and correctly - passing all, so far).

ids are targeted with a # and the id name (Think: #experience)

So to pass the 6th and final task, your CSS file should look like this:

* Complete the challenge by writing CSS below */

.main-header {
  background-color: orange;
}

.main-heading {
  font-size: 72px;
}

#experience { /*** Task 6 ***/
  background-color: lightsteelblue;
}

I hope that helps.

Stay safe and happy coding!

don't know what's going on mine...the last one I typed it exactly the same but it gives me a bummer..