--- title: Modelo de Objeto de Documento (DOM) slug: Web/API/Document_Object_Model tags: - API - DOM - DOM Reference - NeedsTranslation - Referencia - TopicStub translation_of: Web/API/Document_Object_Model original_slug: DOM/DOM_Reference ---
{{DefaultAPISidebar("DOM")}}

Modelo de Objeto de Documento (DOM) interliga as páginas da Web para scripts ou linguagens de programação. Normalmente, isso significa que JavaScript, mas a modelagem de documentos HTML, SVG ou XML como objetos não é parte da linguagem de JavaScript. O modelo DOM representa um documento com uma árvore lógica. Cada ramo da árvore termina em um nodo, e cada nodo contém objetos. Os métodos DOM permitem o acesso programático à árvore; com eles, pode alterar a estrutura, o estilo ou o conteúdo do documento. Os nodos podem ter manipuladores de eventos anexados aos mesmos. Quando é acionado um evento, os manipuladores de eventos são executados .

Está disponível uma introdução ao DOM.

Interfaces DOM

Interfaces DOM obsoletas {{obsolete_inline}}

The Document Object Model has been highly simplified. To achieve this, the following interfaces present in the different DOM level 3 or earlier specification have been removed. It is still not very clear whether some may be reintroduced or not, but for the time being they have to be considered as obsolete and should be avoided:

Interfaces HTML

A document containing HTML is described using the {{domxref("HTMLDocument")}} interface. Note that the HTML specification also extends the {{domxref("Document")}} interface.

An HTMLDocument object also gives access to various features of browsers like the ta or the window, in which a page is drawn using the {{domxref("Window")}} interface, the {{domxref("window.style", "Style")}} associated to it (usually CSS), the history of the browser relative to the context, {{domxref("window.history", "History")}}. Eventually, {{domxref("Selection")}} is done on the document.

Interfaces de elemento HTML

Outras interfaces

Interfaces HTML obsoletas {{obsolete_inline}}

SGV - Interfaces

Interfaces de elemento SVG

Interfaces de tipo de dados SVG

Here are the DOM API for data types used in the definitions of SVG properties and attributes.

Nota: Starting in {{Gecko("5.0")}}, the following SVG-related DOM interfaces representing lists of objects are now indexable and can be accessed ; in addition, they have a length property indicating the number of items in the lists: {{domxref("SVGLengthList")}}, {{domxref("SVGNumberList")}}, {{domxref("SVGPathSegList")}}, and {{domxref("SVGPointList")}}.

Tipo estático

Tipo animado

Interfaces relacionadas com SMIL

Outras interfaces SVG

Consulte também