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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Justin Morales
    Justin Morales
    5,016 Points

    How does a descendent selector work?

    Posted July 19, 2024 6:31am by Justin Morales
    Justin Morales
    5,016 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Kaya loves watermelon
    Kaya loves watermelon
    12,717 Points

    Finally, select all images inside the footer element and assign them to the variable footerImages.

    Posted November 29, 2023 4:55pm by Kaya loves watermelon
    Kaya loves watermelon
    12,717 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • David Burroughs
    David Burroughs
    4,182 Points

    let navigationLinks = document.getElementsByTagName('a');

    Posted July 12, 2023 7:08pm by David Burroughs
    David Burroughs
    4,182 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    2 Answers

  • helena cao
    helena cao
    496 Points

    I am not sure how to get nested elements of a in nav

    Posted December 17, 2022 3:11am by helena cao
    helena cao
    496 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    2 Answers

  • Maksim Yin
    Maksim Yin
    4,833 Points

    Challenge

    Posted December 17, 2022 2:36am by Maksim Yin
    Maksim Yin
    4,833 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Adlan Ilyasov
    Adlan Ilyasov
    2,476 Points

    Solved version

    Posted October 15, 2022 11:19pm by Adlan Ilyasov
    Adlan Ilyasov
    2,476 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • D'auntae Stewart
    PLUS
    D'auntae Stewart
    Courses Plus Student 3,038 Points

    Ok, I do not know if I am just overlooking something but how do you select all <a> tags inside a <ul> w/ ID #gallery

    Posted October 12, 2022 12:34am by D'auntae Stewart
    D'auntae Stewart
    Courses Plus Student 3,038 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • ilia martynenko
    PLUS
    ilia martynenko
    Courses Plus Student 4,961 Points

    Just lost, poor explanation of topic...

    Posted October 2, 2022 10:21am by ilia martynenko
    ilia martynenko
    Courses Plus Student 4,961 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    3 Answers

  • Frank Grillo
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Frank Grillo
    Front End Web Development Techdegree Graduate 16,715 Points

    Returning Elements Using CSS selectors

    Posted September 19, 2022 2:24pm by Frank Grillo
    .a{fill-rule:evenodd;}techdegree seal-36
    Frank Grillo
    Front End Web Development Techdegree Graduate 16,715 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Frank Grillo
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Frank Grillo
    Front End Web Development Techdegree Graduate 16,715 Points

    Returning Elements Using CSS selectors

    Posted September 19, 2022 2:09am by Frank Grillo
    .a{fill-rule:evenodd;}techdegree seal-36
    Frank Grillo
    Front End Web Development Techdegree Graduate 16,715 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Frank Grillo
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Frank Grillo
    Front End Web Development Techdegree Graduate 16,715 Points

    Returning Elements using CSS Selectors?

    Posted September 17, 2022 11:40pm by Frank Grillo
    .a{fill-rule:evenodd;}techdegree seal-36
    Frank Grillo
    Front End Web Development Techdegree Graduate 16,715 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • manqing cao
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    manqing cao
    Full Stack JavaScript Techdegree Student 3,125 Points

    Hi, I am not sure how to combine these requirement into the code

    Posted August 15, 2022 8:09pm by manqing cao
    .a{fill-rule:evenodd;}techdegree
    manqing cao
    Full Stack JavaScript Techdegree Student 3,125 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Amar Singh
    Amar Singh
    1,969 Points

    In this challenge, you're going to select various elements from index.html. First, select all <a> elements inside the <n

    Posted August 13, 2022 7:38am by Amar Singh
    Amar Singh
    1,969 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    0 Answers

  • munira yusuf
    munira yusuf
    3,974 Points

    Next, select all <a> elements inside the unordered list with the ID gallery and assign them to the variable galleryLinks

    Posted July 1, 2022 4:48pm by munira yusuf
    munira yusuf
    3,974 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    2 Answers

  • John Lane
    John Lane
    1,697 Points

    how to use descendant selector in JavaScript

    Posted June 6, 2022 7:45pm by John Lane
    John Lane
    1,697 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Jakob Trammell
    Jakob Trammell
    3,331 Points

    Hello, i am completely stuck, it keeps saying i only return 1 link

    Posted April 25, 2022 9:12pm by Jakob Trammell
    Jakob Trammell
    3,331 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Gabe Orlandi
    Gabe Orlandi
    6,712 Points

    How do you access descendants in JS?

    Posted April 5, 2022 4:34pm by Gabe Orlandi
    Gabe Orlandi
    6,712 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    2 Answers

  • Diego Guzman
    Diego Guzman
    2,205 Points

    When do you use . and when do you use #?

    Posted January 3, 2022 10:08pm by Diego Guzman
    Diego Guzman
    2,205 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • koen haentjens
    koen haentjens
    7,343 Points

    code challange js selecting elements

    Posted December 5, 2021 5:53pm by koen haentjens
    koen haentjens
    7,343 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    3 Answers

  • Frans Joakim Titulaer
    Frans Joakim Titulaer
    5,001 Points

    I can't get this (task 2) to work, writing; let galleryLinks document.querySelectorAll('#gallery a');

    Posted November 29, 2021 9:07pm by Frans Joakim Titulaer
    Frans Joakim Titulaer
    5,001 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Rotem Aslan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Rotem Aslan
    Full Stack JavaScript Techdegree Student 9,895 Points

    why its wrong ?

    Posted November 21, 2021 2:20pm by Rotem Aslan
    .a{fill-rule:evenodd;}techdegree
    Rotem Aslan
    Full Stack JavaScript Techdegree Student 9,895 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Matthew Cahill
    Matthew Cahill
    7,549 Points

    can i please have some help on this question

    Posted October 28, 2021 9:01am by Matthew Cahill
    Matthew Cahill
    7,549 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    3 Answers

  • Michael Rushton
    Michael Rushton
    7,126 Points

    I can't select all the <a> tags like the question asks me to

    Posted October 19, 2021 3:24pm by Michael Rushton
    Michael Rushton
    7,126 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    2 Answers

  • Kennedy Malonga
    Kennedy Malonga
    18,790 Points

    First, select all <a> elements inside the <nav> element and assign them to the variable navigationLinks. (HINT: Use a d

    Posted August 29, 2021 4:32am by Kennedy Malonga
    Kennedy Malonga
    18,790 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Kelsey Donegan
    Kelsey Donegan
    3,342 Points

    How do I specify that I want the <a> tags under <nav> in JS?

    Posted August 25, 2021 10:21pm by Kelsey Donegan
    Kelsey Donegan
    3,342 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

  • Ricky Redman
    Ricky Redman
    7,520 Points

    trouble passing this challenge task

    Posted August 13, 2021 12:17am by Ricky Redman
    Ricky Redman
    7,520 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors

    1 Answer

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.