Finding Elements In The DOM Using querySelector | KIRUPA


#1

As you saw in the JavaScript, the Browser, and the DOM tutorial, your DOM is nothing more than a tree-like structure made up of all the elements that exist in your HTML document:


This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/finding_elements_dom_using_querySelector.htm

#2

I think for Immediate child we need to use ‘>’ instead of ‘+’


#3

Good catch! I just updated it. Thanks for pointing it out :slight_smile:


#4

Thank you for this post, it’s been extremely helpful!


#5

Glad you liked it, Eugenia :grinning: