HTML string -> pixels
HTML -> DOM
DOM -> pixels
So it is basically a more convenient way to modify a displayed web page than directly changing the HTML string.
The DOM is the in-memory representation of the current HTML that would be used to construct the page the browser is currently displaying.
Right click on something in a web page, and choose "Inspect Element". You might have to turn on developer mode to see it.
⬆ That's the DOM.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.