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.

1 Answer

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!