What’s the DOM? #1

The HTML DOM

When a web page is loaded, the browser creates a Document Object Model of the page.

the HTML DOM as a tree of Objects
  1. JavaScript can change all the HTML elements in the page
  2. JavaScript can change all the HTML attributes in the page
  3. JavaScript can change all the CSS styles in the page
  4. JavaScript can remove existing HTML elements and attributes
  5. JavaScript can add new HTML elements and attributes
  6. JavaScript can react to all existing HTML events in the page
  7. JavaScript can create new HTML events in the page

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmadullahnikzad

Ahmadullahnikzad

17 Followers

I am a web developer who writes web development content for you to make web development easier