The Document Object Model(DOM) is a programming interface for web documents. It represents the page so that programs can change the document structure, style, and content. The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
As an object-oriented representation of the web page, it can be modified with a scripting language such as JavaScript.
Web Sustainability
The Document Object Model (DOM)
Interacting with the DOM
<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="stylesheet" type="text/css" href="main.css">
 <title>JavaScript Day 2</title>
</head>
<body>
 <div class="wrapper">
  <section>
   <h1>Hello!</h1>
  </section>
  <section>
   <h1>It’s November Third</h1>
  </section>
 </div>
 <script src="main.js" type="text/javascript"></script>
</body>
</html>
body {
 background-color:  blue;