Document Object Model

1/22/26

  • DOM
  • Overview of DOM
    • JS makes the HTML pages active and dynamic via the DOM.
    • Communicating with the browser via the DOM to respond to events.
    • A programming interface for web documents.
    • DOM is like a tree-like representation of the web page that gets loaded into the browser.
    • DOM represents the document as nodes and objects.
    • Without it, JS wouldnt have any model or notion of web pages, HTML documents, SVG Documents and their component parts.
    • Web API is used to build websites.
    • Language Independent -> made accessible to accessing the structure representation of the document available from a single , consistent API.
  • How DOM represents an HTML Document in memory
  • How to use APIs to create web content and applications