taxonomy:taxonomy_of_dom

Taxonomy of Document Object Model

Taxonomy of DOM

The Document Object Model (DOM) is a programming interface for HTML and XML documents. It represents the document as a tree-like structure of objects that can be manipulated with JavaScript or other programming languages. The following is a brief taxonomy of the DOM:

  1. Document Node - The top-level node of the DOM tree. It represents the entire HTML or XML document.
  2. Element Node - The nodes that represent HTML or XML elements, such as p>, div>, or table>.
  3. Attribute Node - The nodes that represent attributes of an HTML or XML element, such as the “id” or “class” attributes.
  4. Text Node - The nodes that represent the text content of an HTML or XML element.
  5. Comment Node - The nodes that represent comments within an HTML or XML document.
  6. Document Type Node - The nodes that represent the document type declaration, such as !DOCTYPE html>.
  7. Processing Instruction Node - The nodes that represent processing instructions, which are used to provide instructions to the application processing the document.
  8. Entity Reference Node - The nodes that represent entity references, which are used to represent special characters or symbols within an HTML or XML document.
  9. CDATA Section Node - The nodes that represent CDATA sections, which are used to enclose blocks of text that should not be parsed as XML or HTML markup.

By understanding the taxonomy of the DOM, developers can effectively navigate and manipulate the tree-like structure of the document with programming languages like JavaScript.

  • taxonomy/taxonomy_of_dom.txt
  • Last modified: 2023/03/25 20:08
  • by Henrik Yllemo