<html> is located at the top of the web page
It has no parent, it is called the root node
1. Element node
It can be said that the entire DOM model is composed of element nodes.
For example, the text paragraph element "<p>" is the name of the unordered list, and the element node contains other elements,
2. Text node
For example, the text "Title 1" in <h2> and the text content in <li>, these specific texts are called (text node) in the DOM
3. Attribute node
As elements in the page, there will be more or less some attributes, such as almost all elements have title attributes. Since attributes are placed in the tag, the attribute node is always included in the element node
Do you guys have a deeper understanding of the DOM model nodes? I hope you like it.