We have already spoken about the DOM in other chapters ("Beginning of DOM" and "JS Basics/DOM") but since it's so important part of web programming, let us briefly re-introduce the document object model (DOM) in this introduction.
The DOM or Document Object Model is structured representation of a document. W3C DOM standard has 3 parts:
- Core DOM (standard model for all documents),
- XML DOM (standard model for XML documents),
- HTML DOM (standard model for HTML documents).
HTML DOM is the standard object model for HTML which defines HTML elements as objects, and defines all properties, methods and events of HTML elements.
Consider the sample program given below:
No comments have been made yet.
Please login to leave a comment. Login now