What is DOM?

DOM: Document Object Model.

It is a programming API for HTML and XML. It defines the document's logical structure and how it is accessed and manipulated. - "W3C.org".

With the help of dom, a programmer can create, add, delete elements and modify contents

for more information- https://www.w3.org/TR/WD-DOM/introduction.html

Thank you.