Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
  • Chuwen Tan
    Chuwen Tan
    5,787 Points

    About Quiz of Attribute Selector

    Posted January 12, 2024 8:22am 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 January 20, 2023 8:44pm 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 March 28, 2021 3:47am 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 February 24, 2021 5:47pm 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 October 15, 2020 3:26am 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 September 17, 2020 2:04am 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 February 21, 2020 5:34pm 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 February 13, 2020 3:48pm 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 November 16, 2019 11:32pm 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 November 5, 2019 4:08am 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 November 5, 2019 4:07am 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 July 30, 2019 2:44pm 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 July 18, 2019 2:48pm 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 June 10, 2019 11:20pm 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 April 17, 2019 5:17pm 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 March 28, 2019 6:29pm 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 March 14, 2019 5:08pm 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord