dom-querying Flashcards
Why do we log things to the console?
see exactly what we are doing
What is a “model”?
recreation of html something
Which “document” is being referred to in the phrase Document Object Model?
html document that we are working with
What is the word “object” referring to in the phrase Document Object Model?
seperated objects that make up the html
What is a DOM Tree?
collection of all the objects that make up the page
Give two examples of document methods that retrieve a single element from the DOM.
Give one example of a document method that retrieves multiple elements from the DOM at once.
Why might you want to assign the return value of a DOM query to a variable?
to refer back to it for reusability
What console method allows you to inspect the properties of a DOM element object?
console.dir
Why would a
tag need to be placed at the bottom of the HTML content instead of at the top?
html needs to be parse before
What does document.querySelector() take as its argument and what does it return?
What does document.querySelectorAll() take as its argument and what does it return?