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

🤑 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

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

  • 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
    • Showing results for:
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Return Elements Using CSS Selectors
    • Close
  • Justin Morales
    Justin Morales
    5,016 Points

    How does a descendent selector work?

    Posted on Jul 19, 2024 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 on Nov 29, 2023 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 on Jul 12, 2023 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 on Dec 17, 2022 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 on Dec 17, 2022 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 on Oct 15, 2022 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 on Oct 12, 2022 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 on Oct 2, 2022 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 on Sep 19, 2022 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 on Sep 19, 2022 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 on Sep 17, 2022 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 on Aug 15, 2022 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 on Aug 13, 2022 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 on Jul 1, 2022 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 on Jun 6, 2022 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 on Apr 25, 2022 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 on Apr 5, 2022 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 on Jan 3, 2022 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 on Dec 5, 2021 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 on Nov 29, 2021 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 on Nov 21, 2021 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 on Oct 28, 2021 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 on Oct 19, 2021 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 on Aug 29, 2021 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 on Aug 25, 2021 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 on Aug 13, 2021 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.