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.

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

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

  • 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
  • Giacomo Zanin
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Giacomo Zanin
    Full Stack JavaScript v2 Techdegree Student 4,765 Points

    Bummer: Make sure that you're applying the correct color to each list item

    Posted August 7, 2025 10:56am by Giacomo Zanin
    .a{fill-rule:evenodd;}techdegree
    Giacomo Zanin
    Full Stack JavaScript v2 Techdegree Student 4,765 Points
    • JavaScript
    • JavaScript and the DOM
    • Getting a Handle on the DOM
    • Select by Tag Name

    2 Answers

  • jason limmm
    jason limmm
    8,009 Points

    anything wrong with this code?

    Posted June 29, 2024 5:25am 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 June 28, 2023 1:06am 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 October 25, 2022 6:26pm 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 October 15, 2022 10:37pm 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 September 11, 2022 10:52am 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 September 8, 2022 7:36am 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 July 17, 2022 9:33pm 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 July 9, 2022 8:13am 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 July 5, 2022 7:31pm 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,857 Points

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

    Posted April 20, 2022 3:28am by Kennedy Malonga
    Kennedy Malonga
    22,857 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 April 7, 2022 6:05pm 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 March 24, 2022 1:53am 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 March 16, 2022 10:50pm 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 December 25, 2021 3:16pm 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 November 27, 2021 11:28am 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 November 10, 2021 4:42pm 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 October 28, 2021 11:23am 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 October 18, 2021 3:58am 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 October 4, 2021 4:46pm 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 September 17, 2021 3:48am 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 August 17, 2021 9:03pm 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.

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