File: doctype.html

package info (click to toggle)
wdg-html-reference 2.0-1
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 2,748 kB
  • ctags: 295
  • sloc: makefile: 41
file content (50 lines) | stat: -rw-r--r-- 4,471 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
   "http://www.w3.org/TR/REC-html40/strict.dtd">
<html lang=en>
<head>
<title>DOCTYPE - Document Type Declaration</title>
<link rev=Made href="mailto:liam@htmlhelp.com">
<link rel=Start href="../index.html">
<link rel=Glossary href="../../glossary/glossary.html">
<link rel=Copyright href="../../copyright.html">
<link rel=StyleSheet href="../style.css" type="text/css">
<link rel=StyleSheet href="../aural.css" type="text/css" media=aural>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="author" content="Liam Quinn">
<meta name="description" content="A description of HTML 4.0 Document Type Declarations for giving the version of HTML to which a document adheres.">
<meta name="keywords" content="DOCTYPE, doctype, document type declaration, document type definition, DTD, dtd, HyperText Markup Language, HTML, HTML4, HTML 4.0, Web Design Group, WDG, &lt;!doctype&gt; tag, &lt;!DOCTYPE&gt; tag">
</head>
<body>
<h2><img src="../wdglogo1.gif" width=250 height=83 alt="The Web Design Group"></h2>
<h1>DOCTYPE - Document Type Declaration</h1>
<p>Each <abbr class=initialism title="HyperText Markup Language">HTML</abbr> document must begin with a <em>document type declaration</em> that declares which version of <abbr class=initialism title="HyperText Markup Language">HTML</abbr> the document adheres to. HTML4.0 comes in three flavors, each with a different <strong class=html>DOCTYPE</strong>:</p>
<dl>
  <dt><a name=strict>HTML 4.0 Strict</a></dt>
  <dd>
    <p>HTML4.0 Strict is a trimmed down version of HTML4.0 that emphasizes structure over presentation. <a href="../deprecated.html">Deprecated</a> elements and attributes (including most presentational attributes), <a href="../frames/index.html">frames</a>, and link targets are not allowed in HTML4.0 Strict. By writing to HTML4.0 Strict authors can achieve accessible, structurally rich documents that easily adapt to <a href="../../css/">style sheets</a> and different browsing situations. However, since many browsers lack full support for style sheets, HTML4.0 Strict documents may look bland on common visual browsers such as Netscape Navigator 3.<var>x</var>.</p>
    <p>The document type declaration for HTML4.0 Strict is</p>
    <pre><code class=html>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
        "http://www.w3.org/TR/REC-html40/strict.dtd"&gt;</code></pre>
  </dd>
  <dt><a name=transitional>HTML 4.0 Transitional</a></dt>
  <dd>
    <p>HTML 4.0 Transitional includes all elements and attributes of <a href="#strict">HTML4.0 Strict</a> but adds presentational attributes, <a href="../deprecated.html">deprecated</a> elements, and link targets. HTML4.0 Transitional recognizes the relatively poor browser support for <a href="../../css/">style sheets</a>, allowing many <abbr class=initialism title="HyperText Markup Language">HTML</abbr> presentation features to be used as a transition towards HTML4.0 Strict.</p>
    <p>The document type declaration for HTML4.0 Transitional is</p>
    <pre><code class=html>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
        "http://www.w3.org/TR/REC-html40/loose.dtd"&gt;</code></pre>
  </dd>
  <dt><a name=frameset>HTML 4.0 Frameset</a></dt>
  <dd>
    <p>HTML 4.0 Frameset is a variant of <a href="#transitional">HTML4.0 Transitional</a> for documents that use <a href="../frames/index.html">frames</a>. The <strong class=html><a href="../frames/frameset.html">FRAMESET</a></strong> element replaces the <strong class=html><a href="body.html">BODY</a></strong> in a Frameset document.</p>
    <p>The document type declaration for HTML4.0 Frameset is</p>
    <pre><code class=html>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
        "http://www.w3.org/TR/REC-html40/frameset.dtd"&gt;</code></pre>
  </dd>
</dl>
<div class=footer>
<address>Maintained by <a href="http://www.htmlhelp.com/%7Eliam/">Liam Quinn</a> &lt;<a href="mailto:liam@htmlhelp.com">liam@htmlhelp.com</a>&gt;</address>
<p class=toolbar><a href="http://www.htmlhelp.com/"><img src="../wdglogo-small.gif" width=105 height=40 alt="Web Design Group ~"></a> <a href="../index.html" rel=Start>HTML4.0Reference</a>~ <a href="../olist.html">ElementsbyFunction</a>~ <a href="../alist.html">ElementsAlphabetically</a></p>
<p class=copyright><a href="../../copyright.html">Copyright </a> 1998 Liam Quinn. All rights reserved.</p>
</div>
</body>
</html>