It’s a set of rules by which a website is being formed on the web. It contains the structure of the site represented as a tree and information in html tags.

DOM tree helps us to identify the element that is needed and interact with it.