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 Descendant Selectors

andres amperez
andres amperez
Front End Web Development Techdegree Student 2,096 Points

stuck with this any help

/* Complete the challenge by writing CSS below */
  font-size: 26px;
<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Developer Diane: Resume</title>
  <link rel="stylesheet" href="page.css">
  <link rel="stylesheet" href="style.css">
      <img src="developer-diane.jpg" alt="Developer Diane coding on her laptop.">
      <h1>Developer Diane: Resume</h1>
      <span>email: diane@developerdiane.com</span>
    <section class="main-content">
          <h3>Super Web Design Shop</h3>
          <p>Junior Developer</p>
          <p class="date special">February 2020-present</p>
          <h3>Pretty Good Websites, Inc.</h3>
          <p>Web Development Intern</p>
          <p>July 2019-January 2020</p>
      <h2>Awards and Achievements</h2>
        <li>Dev Ninja Award, November 2020</li>
        <li>Developer of the Month, October 2019</li>
        <li>Achieved rating of 6 kyu on <a href="https://www.codewars.com/">Codewars</a></li>
        <li>Certified Accessibility Specialist</li>
      <p>Developer Diane. <small>ยฉ2020</small></p>

1 Answer

Steven Parker
Steven Parker
229,981 Points

The challenge says "Create a descendant selector that targets the span inside the header element."

You're on the right track, but this selector targets every span element. You need one that targets only a span that is inside a header. You may want to review the video on creating Descendant Selectors.