So far, you’ve looked at how to get hold of page elements using JavaScript and the DOM, and how to look inside those elements to retrieve their contents.
In this tutorial, you’ll take your skills a step further, and learn how to change elements. You’ll see how to:
- Change the content inside an element
- Add and remove elements in the page
- Move an element to a different position in the page, and
- Manipulate element attributes.
Once you know how to manipulate DOM elements you can start creating flexible, JavaScript-generated Web content.