What is the purpose of the DocumentFragment node type?

A To hold a portion of a document
B To split the document into fragments
C To hold the entire document
D To hold the fragments

Correct Answer: To hold a portion of a document

The DocumentFragment node type represents a “lightweight” Document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document.

Related Questions

Which node type represents the root-node of the DOM tree?
Which of the following Node types have a node value equal to null?
The node directly above a node is called
What is the purpose of the Node object property ownerDocument?

Next steps