HTML DOM Introduction


HTML DOM defines the standard for accessing and manipulating HTML documents.


Basic Knowledge You Should Have

Before you continue, you should have a basic understanding of the following:

  • HTML
  • CSS
  • JavaScript

If you need to learn these items first, please visit ourHome Page。


What is DOM?

DOM is a standard of the W3C (World Wide Web Consortium).

DOM defines the standard for accessing HTML and XML documents:

"The W3C Document Object Model (DOM) is a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of documents."

The W3C DOM standard is divided into 3 different parts:

  • Core DOM - standard model for any structured document
  • XML DOM - standard model for XML documents
  • HTML DOM - standard model for HTML documents

Editor's Note:DOM is the abbreviation for Document Object Model.


What is XML DOM?

XML DOM defines all XML elements'objectsandproperties, and themethods to access them。

If you need to learn XML DOM, please visit ourXML DOM Tutorial。


What is HTML DOM?

HTML DOM is:

  • The standard object model for HTML
  • The standard programming interface for HTML
  • W3C standard

HTML DOM defines all HTML elements'objectsandproperties, and themethods to access them。

In other words, HTML DOM is the standard for how to get, modify, add, or delete HTML elements.

Other Extensions