DEV Community

davidka7
davidka7

Posted on

Blog[2] = "Whats up with the DOM."

What is the DOM?

At first my impression of the DOM, was just a replication of the original html code. But as I was introduced to Javascript, and other languages, I was quick to realize I was somewhat off with my interpretation. It was more similar to your dev tools in the browser than anything else.

Let me get this straight, the DOM isn't just a list of codes, but more like a better replica of html, where all the cool stuff happen. The Document Object Model (DOM) is an application programming interface (API) for valid HTML as well as well-formed XML documents. For an example, if you forgot to insert an element into your html, the Dom will be able to make its own record in it, add a type of element, just to perfect the code. Besides that your css will be able to better represent your DOM material, and influence several of the codes already written. Besides even this I have even found out after learning JavaScript that's its is capable of directly manipulating the html data. With the DOM, programmers can build different documents, navigate its structure, and add, delete, or modify elements as well as content.

As DOM and javascript continued to grow together, at once known as the API, other languages like python could finally be mixed in with the DOM.

If it's a little confusing, let me give you a better example. Javascript is sort off like the worker, and the DOM is sort of like the machine. Without the machine none of the work can be done. In particular It's the DOMs Nodes and object that do the work. Javascript is just the syntax. This way programming languages can connect to the page.

Top comments (0)