Accessing Element Content
In this lesson, we'll learn three simple ways to access node content. Let's begin!
To implement useful functionality, it is not enough to navigate to a document tree node. You often need to query the content of a specific node, or a set of nodes.
Three simple ways to access node content
The DOM provides three simple ways to access node content.
Method 1
The first and most obvious way is to use the HTML element and attribute navigation methods to access child elements and ...