Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 01

The DOM

The document as a tree of objects: node types, live and static collections, attributes versus properties, and inserting, moving, querying and serialising nodes.
  1. 010What is the DOM, and how do nodes, elements, and the document relate?easy
  2. 020What's the difference between a live HTMLCollection and a static NodeList?medium
  3. 030What's the difference between an attribute and a property?medium
  4. 040How do you insert, move, and remove nodes efficiently?medium
  5. 050How do innerHTML, textContent, innerText, and setHTML() differ?medium
  6. 060How do querySelector(), closest(), matches(), and TreeWalker find nodes?easy