DOM Flashcards

1
Q

What does the .remove() method do?

A

The Element.remove() method removes the element from the tree it belongs to.

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

What does document.all() method do? (deprecated)

A

The Document interface’s read-only all property returns an HTMLAllCollection rooted at the document node. In other words, it returns all of the document’s elements, accessible by order (like an array) and by ID (like a regular object).

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