✨ 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
    • Select by Tag Name
    • Close
  • jason limmm
    jason limmm
    8,009 Points

    anything wrong with this code?

    Posted on Jun 29, 2024 by jason limmm
    jason limmm
    8,009 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • William Domenech
    William Domenech
    7,259 Points

    i am stuck and i have no idea whats next

    Posted on Jun 28, 2023 by William Domenech
    William Domenech
    7,259 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Charlotte Jane Pollard
    PLUS
    Charlotte Jane Pollard
    Courses Plus Student 3,200 Points

    I don't understand the error.. is there a bug because I'm sure I've answered it right??? :/

    Posted on Oct 25, 2022 by Charlotte Jane Pollard
    Charlotte Jane Pollard
    Courses Plus Student 3,200 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Adlan Ilyasov
    Adlan Ilyasov
    2,476 Points

    Cannot read property '1' of null Im not really sure what im doing wrong here. Help would be appriciated

    Posted on Oct 15, 2022 by Adlan Ilyasov
    Adlan Ilyasov
    2,476 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Ali Billow
    Ali Billow
    2,819 Points

    Working with the DOM - Help with challenge!

    Posted on Sep 11, 2022 by Ali Billow
    Ali Billow
    2,819 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    3 Answers

  • Tarun Roy
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Tarun Roy
    Python Development Techdegree Student 235 Points

    Cannot read property '1' of null

    Posted on Sep 8, 2022 by Tarun Roy
    .a{fill-rule:evenodd;}techdegree
    Tarun Roy
    Python Development Techdegree Student 235 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Bodie Wood
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Bodie Wood
    Full Stack JavaScript Techdegree Student 4,027 Points

    Why doesnt `document.getElementsByTagName('ul');` work?

    Posted on Jul 17, 2022 by Bodie Wood
    .a{fill-rule:evenodd;}techdegree
    Bodie Wood
    Full Stack JavaScript Techdegree Student 4,027 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Sippi Software
    Sippi Software
    6,648 Points

    helpme

    Posted on Jul 9, 2022 by Sippi Software
    Sippi Software
    6,648 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    2 Answers

  • Patrick Thomas
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Patrick Thomas
    Full Stack JavaScript Techdegree Student 3,529 Points

    I need help writing this code? So, I use the HTML Collection method, and it is not reading it.

    Posted on Jul 5, 2022 by Patrick Thomas
    .a{fill-rule:evenodd;}techdegree
    Patrick Thomas
    Full Stack JavaScript Techdegree Student 3,529 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    2 Answers

  • Kennedy Malonga
    Kennedy Malonga
    22,856 Points

    Complete the code by setting the variable listItems to refer to an HTMLCollection. The collection should contain all lis

    Posted on Apr 20, 2022 by Kennedy Malonga
    Kennedy Malonga
    22,856 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    3 Answers

  • Caleb Newell
    Caleb Newell
    12,562 Points

    Setting variable listItems to refer to an HTMLCollection

    Posted on Apr 7, 2022 by Caleb Newell
    Caleb Newell
    12,562 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Oscar Gonzalez
    Oscar Gonzalez
    7,113 Points

    Javascript and the DOM challenge Task 1/1

    Posted on Mar 24, 2022 by Oscar Gonzalez
    Oscar Gonzalez
    7,113 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Ryan Woods
    Ryan Woods
    3,682 Points

    im not sure what it is specifically asking? I had to look deep into the internet to find the solution

    Posted on Mar 16, 2022 by Ryan Woods
    Ryan Woods
    3,682 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Aikins Dwamena
    Aikins Dwamena
    4,423 Points

    Bummer: Cannot read property '1' of null How do i fix this?

    Posted on Dec 25, 2021 by Aikins Dwamena
    Aikins Dwamena
    4,423 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Altug Sahan
    Altug Sahan
    5,695 Points

    Shouldn't this be working?

    Posted on Nov 27, 2021 by Altug Sahan
    Altug Sahan
    5,695 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Oleksandra Smith
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Oleksandra Smith
    Front End Web Development Techdegree Student 9,361 Points

    Loop question

    Posted on Nov 10, 2021 by Oleksandra Smith
    .a{fill-rule:evenodd;}techdegree
    Oleksandra Smith
    Front End Web Development Techdegree Student 9,361 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Valeriya Kamenetska
    Valeriya Kamenetska
    15,832 Points

    I am not sure why the code below is not working

    Posted on Oct 28, 2021 by Valeriya Kamenetska
    Valeriya Kamenetska
    15,832 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Rafael Singer
    PLUS
    Rafael Singer
    Courses Plus Student 13,161 Points

    Keep getting error message "Cannot read property '1' of null"

    Posted on Oct 18, 2021 by Rafael Singer
    Rafael Singer
    Courses Plus Student 13,161 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • marin keo
    marin keo
    7,131 Points

    I'm completely lost, can anyone give me a hand?

    Posted on Oct 4, 2021 by marin keo
    marin keo
    7,131 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    1 Answer

  • Valentino Figueroa
    Valentino Figueroa
    4,923 Points

    How is my code broken,,?

    Posted on Sep 17, 2021 by Valentino Figueroa
    Valentino Figueroa
    4,923 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    2 Answers

  • Louis Riddle
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Louis Riddle
    Front End Web Development Techdegree Graduate 12,982 Points

    Cannot read property of 1 null

    Posted on Aug 17, 2021 by Louis Riddle
    .a{fill-rule:evenodd;}techdegree seal-36
    Louis Riddle
    Front End Web Development Techdegree Graduate 12,982 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    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.