dom

What is DOM ?

  • Profile picture of Mcs
  • by Mcs June 30, 2025

The Document Object Model (DOM) in JavaScript is a programming interface for web documents (HTML or XML). 

DOM stands for Document Object Model. It is a programming interface that allows JavaScript to interact with HTML and CSS.

 Common DOM Methods

dom method

Tree Structure:

dom tree

Comments

Add new comment

Restricted HTML

  • Allowed HTML tags: <br> <p> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <cite> <dl> <dt> <dd> <a hreflang href> <blockquote cite> <ul type> <ol type start> <strong> <em> <code> <li>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.