DOM5 HTML

DOM5 HTML

Document Object Models

  • A platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure and style of HTML, XHTML and XML documents
  • A DOM is required by JavaScript scripts that inspect or modify a Web page dynamically
  • JavaScript uses the DOM to view its containing HTML page and browser state
  • Anything found in an HTML or XML document can be accessed, changed, deleted, or added using the DOM

DOM Levels

  • The Core DOM is the standard model for any structured document
  • The HTML DOM is the standard model for HTML documents
  • The XML DOM is the standard model for XML documents

DOM5 HTML

  • Signifies the DOM for HTML5, not DOM Level 5
  • A document is processed as an HTML document when it is transmitted with an HTML MIME type, such as text/html
  • A document is processed as an XML document when it is transmitted with an XML MIME type, such as application/xhtml+xml

Sources