Module 04-08 The DOM Flashcards
1
Q
What is the DOM?
A
Document Object Model, an internal data structure that browsers use to represent the structure and content of a web page.
2
Q
True or False: HTML is read only once, when a page is loaded
A
TRUE, it’s converted into a DOM after that.
3
Q
Does the code of the DOM always match the original HTML?
A
No, it will add in implied elements not present in the original HTML, like in a table.
4
Q
True or False: Element IDs don’t need to be unique
A
FALSE!
5
Q
What is the difference between children and childNodes?
A
children returns elements, childNodes returns notes including text, whitespace, and comments in the DOM.