📄 dom_intro.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML DOM Introduction</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>HTML DOM Introduction</h1>
<a href="default.asp"><img border="0" alt="previous" src="../images/btn_previous.gif" /></a>
<a href="dom_nodes.asp"><img border="0" alt="next" src="../images/btn_next.gif" width="100" height="20" /></a>
<hr />
<p class="intro">The HTML DOM defines a standard for accessing and manipulating
HTML documents.</p>
<hr />
<h2>What You Should Already Know</h2>
<p>Before you continue you should have a basic understanding of the following:</p>
<ul>
<li>HTML / XHTML</li>
<li>JavaScript</li>
</ul>
<p>If you want to study these subjects first, find the tutorials on our
<a href="../default.asp">Home page</a>.</p>
<hr />
<h2>What is the DOM?</h2>
<p>The DOM is a W3C (World Wide Web Consortium) standard.</p>
<p>The DOM defines a standard for accessing documents like HTML and XML:</p>
<p><i>"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."</i></p>
<p>The DOM is separated into 3 different parts / levels:</p>
<ul>
<li>Core DOM - standard model for any structured document</li>
<li>XML DOM - standard model for XML documents</li>
<li>HTML DOM - standard model for HTML documents</li>
</ul>
<p>The DOM defines the <b>objects and properties</b> of all document elements,
and the <b>methods</b> (interface) to access them.</p>
<hr />
<h2>What is the XML DOM?</h2>
<p>The XML DOM defines the <b>objects and properties</b> of all XML elements,
and the <b>methods</b> (interface) to access them.</p>
<p>If you want to study the XML DOM, find the XML DOM tutorial on
<a href="../default.asp">our homepage</a>.</p>
<hr />
<h2>What is the HTML DOM?</h2>
<p>The HTML DOM is:</p>
<ul>
<li>A standard object model for HTML</li>
<li>A standard programming interface for HTML</li>
<li>Platform- and language-independent</li>
<li>A W3C standard</li>
</ul>
<p>The HTML DOM defines the <b>objects and properties</b> of all HTML elements,
and the <b>methods</b> (interface) to access them.</p>
<p>In other words:</p>
<p><b>The HTML DOM is a standard for how to get, change, add, or delete HTML
elements.</b></p>
<hr />
<a href="default.asp"><img border="0" alt="previous" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="dom_nodes.asp"><img border="0" alt="next" src="../images/btn_next.gif" width="100" height="20" /></a>
<hr />
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -