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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False: Element IDs don’t need to be unique

A

FALSE!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly