ADVERTISEMENT

What is Dom? Document Object Model in HTML & JavaScript

Telegram Group Join Now

ADVERTISEMENT

What is Dom? Document Object Model in HTML & JavaScript

 

ADVERTISEMENT

Document Object Model in HTML & JavaScript
Document Object Model in HTML & JavaScript

ADVERTISEMENT

 

DOM Full Form

ADVERTISEMENT

DOM is created by web pages when loaded. DOM is known as Document Object Model. DOM has a specific treemap structure like below:

ADVERTISEMENT

 

Document Object Model in HTML & JavaScript
Document Object Model in HTML & JavaScript

 

 

ADVERTISEMENT

DOM is a standard by World Wide Web Consortium that manages and controls web development standards worldwide.

Parts of DOM

The DOM defines a standard for penetrating documents

ADVERTISEMENT

“The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to stoutly pierce and modernize the content, structure, and style of a document.”

ADVERTISEMENT

The W3C DOM standard is separated into 3 different types. These include

  1. Core DOM (for all document types),
  2. XML DOM (for XML Document types)
  3. and also lastly, HTML DOM for HTML documents.

DOM and JavaScript

DOM is generally related to JavaScript. Let’s learn why. This is mainly because DOM benefits JavaScript in many ways.

With the power of DOM, JavaScript can change HTML elements, change HTML attributes, change CSS Styles, remove HTML elements and attributes that already exist, add new HTML elements, add new HTML attributes, and also react and create new or existing HTML events in the page.

100+ JavaScript Projects With Source Code ( Beginners to Advanced)

ADVERTISEMENT

Conclusion

ADVERTISEMENT

In summary, DOM is a standard programming interface to get, add or change HTML elements with JavaScript.

ADVERTISEMENT

Thanks for reading!

ADVERTISEMENT

written by @codingporium

ADVERTISEMENT

ADVERTISEMENT

Telegram Group Join Now

Share on:

Leave a Comment

ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT