⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tag_doctype.asp@output=print

📁 W3Schools tutorial..web designing
💻 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 DOCTYPE TAG</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 &lt;!DOCTYPE&gt; tag</h1>
<hr />

<h2>Definition and Usage</h2>
<p>The &lt;!DOCTYPE&gt; declaration is the very first thing in your 
document, before the &lt;html&gt; tag. This tag tells the browser which HTML
or XHTML specification the document uses.</p>
<hr />

<h2>Tips and Notes</h2>
<p><b>Note: </b>The &lt;!DOCTYPE&gt; tag does not have an end tag!&nbsp;</p>
<hr />

<h2>HTML</h2>
<p>HTML 4.01 specifies three document types: Strict, Transitional, and Frameset.</p>

<h3>HTML Strict DTD</h3>

<p>Use this when you want clean markup, free of presentational clutter. Use this 
together with Cascading Style Sheets (CSS):</p>

<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <td>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;</td>
  </tr>
</table>

<h3>HTML Transitional DTD</h3>

<p>
The Transitional DTD includes presentation attributes and elements that
W3C expects to move to a style sheet. Use this when you need to use HTML's 
presentational features because your readers don't have browsers that support 
Cascading Style Sheets (CSS):</p>

<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <td>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;</td>
  </tr>
</table>

<h3>Frameset DTD</h3>

<p>
The Frameset DTD should be used for documents with frames. The Frameset DTD is
equal to the Transitional DTD except for the frameset element replaces the body 
element:
</p>

<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <td>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot; &quot;http://www.w3.org/TR/html4/frameset.dtd&quot;&gt;</td>
  </tr>
</table>
<br />
<hr />
<h2>XHTML</h2>
<p>XHTML 1.0 specifies three XML document types: Strict, Transitional, and Frameset.</p>
<h3>XHTML Strict DTD</h3>

<p>Use this DTD when you want clean markup, free of presentational clutter. Use 
this together with Cascading Style Sheets (CSS):</p>

<table width="100%" border="1" class="ex" cellspacing="0"><tr><td valign="top">
&lt;!DOCTYPE html
PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; 
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
</td></tr></table>

<h3>XHTML Transitional DTD</h3>

<p>Use this DTD when you need to use XHTML's presentational features because 
your readers don't have browsers that support Cascading Style Sheets (CSS):</p>

<table width="100%" border="1" class="ex" cellspacing="0"><tr><td valign="top">
&lt;!DOCTYPE html
PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</td></tr></table>
<h3>XHTML Frameset DTD</h3>

<p>Use this DTD when you want to use frames!</p>

<table width="100%" border="1" class="ex" cellspacing="0"><tr><td valign="top">
&lt;!DOCTYPE html
PUBLIC &quot;-//W3C//DTD XHTML 1.0 Frameset//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd&quot;&gt;
</td></tr></table>
<p>To check that you have written a valid XHTML document with a correct DTD,&nbsp;
you can link your XHTML page to an XHTML validator.</p>
<hr />

<p>Attributes: NONE</p>

<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 + -