Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 2 - HTML DOM

2.1 What Is DOM

The DOM, or Document Object Model, is a standard object model and programming interface for HTML documents. It represents the structure of HTML documents as a tree of objects, enabling dynamic manipulation of the content and structure of the HTML page.

The Document Object Model (DOM) tree provides a hierarchical representation of a web page's structure. It transforms the HTML document into a tree-like structure where each node corresponds to a part of the document.

The DOM defines:

  • The properties of HTML elements
  • The methods to access HTML elements
  • The events that can occur in relation to HTML elements