DOM Manipulation Basics
Selecting, creating, modifying, and removing elements from the live document tree using core DOM APIs.
The DOM (Document Object Model) is the browser's live, tree-structured representation of an HTML document, and manipulating it directly with JavaScript is the foundation everything else — frameworks, virtual DOM diffing, reactive rendering — is ultimately built on top of. Even in a framework-heavy job, interviewers check for raw DOM fluency because it reveals whether you understand what's actually happening underneath the abstraction.
The DOM is like a building's live floor plan blueprint that also happens to be the actual building — walking up and modifying a wall (element) via querySelector immediately changes the real physical structure, which is why builders (browsers) try to batch several wall changes together before recalculating the whole building's structural integrity (reflow) instead of doing it after every single nail.