Member-only story

JavaScript Fundamentals: Master the DOM! (Part 1)

Timothy Robards
9 min readMar 5, 2019

The Document Object Model, or the “DOM”, defines the logical structure of HTML documents & essentially acts as an interface to web pages. Through the use of programming languages such as JavaScript, we can access the DOM to manipulate websites and make them interactive.

In this article we’re going to be working with the document object, taking a look at the DOM tree and nodes, and we’ll learn all about how to access and work with elements. Let’s get started!

🤓 Want to stay up to date with web dev?
🚀 Want the latest news delivered right to your inbox?
🎉 Join a growing community of designers & developers!

Subscribe to my newsletter here → https://easeout.eo.page

What is the DOM?

At its core a website must consist of an HTML document, an index.html. Using a browser we view the website, which renders from our HTML file/s and any CSS files which add style and layout rules.

The browser also creates a representation of this document known as the Document Object Model. It’s through the use of the DOM, that JavaScript is able to access and alter the content and elements of the website.

--

--

Timothy Robards
Timothy Robards

Written by Timothy Robards

Freelancer, developer & author. Creator of 👉 https://easeout.co

Responses (2)