Document Object Model: Difference between revisions

Content deleted Content added
m Reverted edits by 1.55.216.164 (talk) (AV)
WikiCleanerBot (talk | contribs)
m v2.05b - Bot T13 CW#549 - Fix errors for CW project (Split link)
Line 20:
}}
{{HTML}}
The '''Document Object Model''' ('''DOM''') is a [[cross-platform|cros]][[cross-platform|s-platform]]<ref name=":0" /> and [[Language-independent specification|language-independent]] [[API]] that treats an [[HTML]] or [[XML]] document as a [[tree structure]] wherein each [[Node (computer science)|node]] is an [[Object (computer science)|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.<ref name=":0">{{Cite web |title=Document Object Model (DOM): definition, structure and example |url=https://www.ionos.com/digitalguide/websites/web-development/an-introduction-to-the-document-object-model-dom/ |access-date=2022-04-21 |website=IONOS Digitalguide |language=en}}</ref> Nodes can have [[event handler]]s (also known as event listeners) attached to them. Once an event is triggered, the event handlers get executed.<ref name="Introduction">{{cite web
| access-date = 2012-01-12
| publisher = W3C