✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Try Mentor AI — Free Pilot! Get instant, personalized help while you learn. Be among the first to explore it and shape what comes next. JOIN NOW

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Try Mentor AI — Free Pilot! Get instant, personalized help while you learn. Be among the first to explore it and shape what comes next. JOIN NOW

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
    • Showing results for:
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Close
  • Chuwen Tan
    Chuwen Tan
    5,787 Points

    About Quiz of Attribute Selector

    Posted on Jan 12, 2024 by Chuwen Tan
    Chuwen Tan
    5,787 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    2 Answers

  • Paul Mamac
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Paul Mamac
    Full Stack JavaScript Techdegree Student 2,622 Points

    I am targeting the <a> with a desc function but, it's not working.

    Posted on Jan 20, 2023 by Paul Mamac
    .a{fill-rule:evenodd;}techdegree
    Paul Mamac
    Full Stack JavaScript Techdegree Student 2,622 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    What's the benefit of using a custom data-* attribute to select an element with JavaScript?

    Posted on Mar 28, 2021 by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Faith Wong
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Faith Wong
    Full Stack JavaScript Techdegree Student 3,174 Points

    Modular CSS with Sass module

    Posted on Feb 24, 2021 by Faith Wong
    .a{fill-rule:evenodd;}techdegree
    Faith Wong
    Full Stack JavaScript Techdegree Student 3,174 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Next Steps with CSS Selectors and JavaScript

    2 Answers

  • Ethan Halfhide
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ethan Halfhide
    Full Stack JavaScript Techdegree Student 3,886 Points

    What is the correct choice?

    Posted on Oct 15, 2020 by Ethan Halfhide
    .a{fill-rule:evenodd;}techdegree
    Ethan Halfhide
    Full Stack JavaScript Techdegree Student 3,886 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Hector Romero
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hector Romero
    Full Stack JavaScript Techdegree Student 2,810 Points

    How to access data attribute with queryselector() on javascript correctly

    Posted on Sep 17, 2020 by Hector Romero
    .a{fill-rule:evenodd;}techdegree
    Hector Romero
    Full Stack JavaScript Techdegree Student 2,810 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Michal Majewski
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Michal Majewski
    Full Stack JavaScript Techdegree Graduate 18,941 Points

    Just got stuck here, cant find the right syntax anywhere for this peace of code.

    Posted on Feb 21, 2020 by Michal Majewski
    .a{fill-rule:evenodd;}techdegree seal-36
    Michal Majewski
    Full Stack JavaScript Techdegree Graduate 18,941 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Luis Giraldo
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Luis Giraldo
    Full Stack JavaScript Techdegree Graduate 27,531 Points

    Is the last code snippet comment referring to data-toggle-content?

    Posted on Feb 13, 2020 by Luis Giraldo
    .a{fill-rule:evenodd;}techdegree seal-36
    Luis Giraldo
    Full Stack JavaScript Techdegree Graduate 27,531 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Custom Data Attributes

    1 Answer

  • Haardik Gupta
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Haardik Gupta
    Full Stack JavaScript Techdegree Student 5,459 Points

    selectors in js

    Posted on Nov 16, 2019 by Haardik Gupta
    .a{fill-rule:evenodd;}techdegree
    Haardik Gupta
    Full Stack JavaScript Techdegree Student 5,459 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Christopher Schillinger
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Christopher Schillinger
    Full Stack JavaScript Techdegree Student 8,595 Points

    Target all <a> elements inside <nav>

    Posted on Nov 5, 2019 by Christopher Schillinger
    .a{fill-rule:evenodd;}techdegree
    Christopher Schillinger
    Full Stack JavaScript Techdegree Student 8,595 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    4 Answers

  • Christopher Schillinger
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Christopher Schillinger
    Full Stack JavaScript Techdegree Student 8,595 Points

    What is the answer? And why

    Posted on Nov 5, 2019 by Christopher Schillinger
    .a{fill-rule:evenodd;}techdegree
    Christopher Schillinger
    Full Stack JavaScript Techdegree Student 8,595 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • timur
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    timur
    Full Stack JavaScript Techdegree Graduate 18,104 Points

    Is the second example trying the illustrate the same point as the first example?

    Posted on Jul 30, 2019 by timur
    .a{fill-rule:evenodd;}techdegree seal-36
    timur
    Full Stack JavaScript Techdegree Graduate 18,104 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Custom Data Attributes

    1 Answer

  • atsuki138
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    atsuki138
    Full Stack JavaScript Techdegree Student 5,635 Points

    What is the point of this question? I cannot get what I should write.

    Posted on Jul 18, 2019 by atsuki138
    .a{fill-rule:evenodd;}techdegree
    atsuki138
    Full Stack JavaScript Techdegree Student 5,635 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • SHARATH NAIR
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    SHARATH NAIR
    Full Stack JavaScript Techdegree Student 3,195 Points

    Hii I am not getting the right answer to this quiz question. Please help

    Posted on Jun 10, 2019 by SHARATH NAIR
    .a{fill-rule:evenodd;}techdegree
    SHARATH NAIR
    Full Stack JavaScript Techdegree Student 3,195 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Toni Hammond
    Toni Hammond
    13,730 Points

    https://teamtreehouse.com/library/css-selectors-quickstart/the-role-of-selectors-in-javascript/selectors-in-javascript-r

    Posted on Apr 17, 2019 by Toni Hammond
    Toni Hammond
    13,730 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    3 Answers

  • Pavani Chilakala
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Pavani Chilakala
    Full Stack JavaScript Techdegree Graduate 17,946 Points

    Complete the JavaScript code below by writing a selector that targets all <a> elements inside the <nav> element:

    Posted on Mar 28, 2019 by Pavani Chilakala
    .a{fill-rule:evenodd;}techdegree seal-36
    Pavani Chilakala
    Full Stack JavaScript Techdegree Graduate 17,946 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    1 Answer

  • Kyle Zunino
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    Kyle Zunino
    Full Stack JavaScript Techdegree Graduate 23,214 Points

    How do I use a JavaScript code by writing a selector that targets all <a> elements inside the <nav> element.

    Posted on Mar 14, 2019 by Kyle Zunino
    .a{fill-rule:evenodd;}techdegree seal-36
    Kyle Zunino
    Full Stack JavaScript Techdegree Graduate 23,214 Points
    • JavaScript
    • CSS Selectors Quickstart
    • The Role of Selectors in JavaScript
    • Selectors in JavaScript Review

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.