Index

6. DOM (Document Object Model)

6.1 DOM

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1cfa91ff-a60a-4984-b45a-d9fbd510ba27/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/720e935c-9e2f-4513-b2a5-7c3b6e6f543b/Untitled.png

웹페이지가 로딩될 때 브라우저는 다음과 같은 객체들의 트리를 생성합니다. 이를 DOM이라 부릅니다. 자바스크립트는 이 DOM을 참조해 html요소를 제어할 수 있습니다.