Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Document Object Model?
Summarize this article for a 10 year old
The Document Object Model (DOM) is a cross-platform and language-independent interface that treats an HTML or XML document as a tree structure wherein each node is an object representing a part of the document. The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree; with them one can change the structure, style or content of a document. Nodes can have event handlers (also known as event listeners) attached to them. Once an event is triggered, the event handlers get executed.
|First published||October 1, 1998; 25 years ago (1998-10-01)|
November 19, 2015; 7 years ago (2015-11-19)
|Organization||World Wide Web Consortium, WHATWG|
|Base standards||WHATWG DOM Living Standard|
The principal standardization of the DOM was handled by the World Wide Web Consortium (W3C), which last developed a recommendation in 2004. WHATWG took over the development of the standard, publishing it as a living document. The W3C now publishes stable snapshots of the WHATWG standard.
- A document is a document node.
- All HTML elements are element nodes.
- All HTML attributes are attribute nodes.
- Text inserted into HTML elements are text nodes.
- Comments are comment nodes.
Oops something went wrong: