8bitzz / blogs

0 stars 0 forks source link

The Document Object Model (DOM) #8

Open 8bitzz opened 3 years ago

8bitzz commented 3 years ago

Document Structure

Trees

Tree

The Standard

Moving Through the Tree

Moving through tree

console.log(talksAbout(document.body, "book")); // → true



### Summary
- DOM is a data structure representing the browser’s model of the document. A JavaScript program can modify it to change the visible document.
- DOM is organized like a tree, in which elements are arranged hierarchically according to the structure of the document. 
- The way a document is displayed can be influenced by styling