Hello, World!
`), one attribute node (`id="myPara"`), and one text node (`Hello, World!`). ## Manipulating DOM The DOM API provides methods to manipulate these nodes. For example, you can change the text of the `myPara` element as follows: ```javascript document.getElementById('myPara').textContent = 'Hello, DOM!'; ``` ## Traversing the DOM You can navigate the DOM tree using properties such as `parentNode`, `firstChild`, `lastChild`, `nextSibling`, and `previousSibling`. For example: ```javascript let para = document.getElementById('myPara'); let parent = para.parentNode; ``` ## DOM Events DOM Elements can register events, such as `click`, `keydown`, etc., and provide a function to execute when the event occurs. For example: ```javascript document.getElementById('myButton').addEventListener('click', function() { alert('Button clicked!'); }); ``` To summarize, the DOM provides a powerful interface for interacting with web documents. It allows you to create, modify, delete, and interact with elements on a web page. It's crucial to understand how it works to create dynamic and interactive web applications.