Skip to content

Commit

Permalink
Merge pull request #28074 from Hachibroku/nodes_elements_update
Browse files Browse the repository at this point in the history
DOM Manipulation and Events: More clearly describe the relationship between nodes and elements.
  • Loading branch information
zachmmeyer authored Jun 23, 2024
2 parents e873c49 + a924764 commit 135e3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foundations/javascript_basics/DOM_manipulation_and_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This section contains a general overview of topics that you will learn in this l

### Document Object Model

The DOM (or Document Object Model) is a tree-like representation of the contents of a webpage - a tree of "nodes" with different relationships depending on how they're arranged in the HTML document.
The DOM (or Document Object Model) is a tree-like representation of the contents of a webpage - a tree of "nodes" with different relationships depending on how they're arranged in the HTML document. There are many types of nodes, most of which are not commonly used. In this lesson we will be focusing on "element" nodes which are primarily used for manipulating the DOM.

```html
<div id="container">
Expand Down Expand Up @@ -55,7 +55,7 @@ So you're identifying a certain node based on its relationships to the nodes aro

### DOM methods

When your HTML code is parsed by a web browser, it is converted to the DOM, as was mentioned above. One of the primary differences is that these nodes are JavaScript objects that have many properties and methods attached to them. These properties and methods are the primary tools we are going to use to manipulate our webpage with JavaScript. We'll start with the query selectors - those that help you target nodes.
When your HTML code is parsed by a web browser, it is converted to the DOM, as was mentioned above. One of the primary differences is that these nodes are JavaScript objects that have many properties and methods attached to them. These properties and methods are the primary tools we are going to use to manipulate our webpage with JavaScript.

#### Query selectors

Expand Down

0 comments on commit 135e3a3

Please sign in to comment.