星期四, 4月 14, 2011

[讀書筆記] DOM (document object module)

前言

一直覺得web 程設是一個很輕鬆的課,所以上課都不太認真,回家也沒怎麼碰。
作業總是demo前一兩天才寫。
而因為沒有花心思花時間,所以每次寫作業前都要摸索很久。
最近想要把一些應該已經要會的東西,好好的學起來、整理起來。
大概就降囉~



http://www.w3schools.com/htmldom/dom_intro.asp

What is the DOM?

The DOM is a W3C (World Wide Web Consortium) standard.
The DOM defines a standard for accessing documents like HTML and XML:
"The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."
The DOM is separated into 3 different parts / levels:
  • Core DOM - standard model for any structured document
  • XML DOM - standard model for XML documents
  • HTML DOM - standard model for HTML documents
The DOM defines the objects and properties of all document elements, and the methods (interface) to access them.







What is the HTML DOM?

The HTML DOM is:
  • A standard object model for HTML
  • A standard programming interface for HTML
  • Platform- and language-independent
  • A W3C standard
The HTML DOM defines the objects and properties of all HTML elements, and the methods (interface) to access them.
In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML elements.
 

沒有留言:

張貼留言