The DOM, or Document Object Model, is a programming interface for web documents. It represents the structure of a web page as a tree of objects.

<html>
	<head>
		<title>Simple app</title>
		<meta name="description" content="A brief description of the webpage content for search engines and social media.">
	</head>
	<body>
		<h1>
			hi there
		</h1>
	</body>
</html>

Screenshot 2024-08-17 at 4.26.44 PM.png

Screenshot 2024-08-17 at 4.27.14 PM.png

Why DOM?

The DOM abstracts the structure of the document into a tree of objects, allowing scripts to manipulate the content and structure dynamically. This abstraction enables more complex interactions and functionalities beyond just static HTML.