DOM element nodes model elements in an HTML document.
Much like an element in an HTML page, the DOM allows us to access a node’s attributes, such as its
id, and inline
In the diagram to the right, we have highlighted the paragraph element with an
'bio' in the HTML document. If we were accessing that element node in our script, the DOM would allow us to tweak each of those attributes, or simply access them to check their value in the code.
After studying the diagram on the right, feel free to click on to the next exercise.