DOM Manipulation

The DOM(Document Object Model) is how you can interact with and manipulate web pages using JavaScript.

const element = document.getElementById('myElement');
or
const element = document.querySelector('.myClass');

element.textContent = 'New Content';

element.style.color = 'blue';