Thanks for the reply and the link Martin Taylor. It looks to be quite a comprehensive tutorial on DOM (the link you shared
https://www.w3schools.com/js/js_htmldom.asp ).
I was doing some more searching and found three other very useful articles where they explain quite well in a somewhat brief, clear and practical way what DOM is, what it is not and how to use DOM:
https://www.freecodecamp.org/news/dom-explained-everything-you-need-to-know-about-the-document-object-model/
https://bitsofco.de/what-exactly-is-the-dom/
https://www.freecodecamp.org/news/whats-the-document-object-model-and-why-you-should-know-how-to-use-it-1a2d0bc5429d/
In a very summarized way I can quote the following, although I highly recommend to take a look at the articles I just mentioned to see the examples:
"The DOM is a W3C (World Wide Web Consortium) standard.
The DOM defines a standard for accessing documents:
'The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document.' "
"So, whatâs the DOM?
Do you know all those cool animations that you see around, that make you think to yourself, âWow, I wish I could make something like thatâ? All of those animations are made by manipulating the DOM.[...]
The DOM (Document Object Model) is an interface that represents how your HTML and XML documents are read by the browser. It allows a language (JavaScript) to manipulate, structure, and style your website. After the browser reads your HTML document, it creates a representational tree called the Document Object Model and defines how that tree can be accessed.
Advantages
By manipulating the DOM, you have infinite possibilities. You can create applications that update the data of the page without needing a refresh. Also, you can create applications that are customizable by the user and then change the layout of the page without a refresh. You can drag, move, and delete elements."