~ubuntu-branches/ubuntu/raring/w3-recs/raring

« back to all changes in this revision

Viewing changes to www.w3.org/TR/REC-html32-19970114/images/red.gif.html

  • Committer: Bazaar Package Importer
  • Author(s): Colin Darie, Stefano Zacchiroli, Colin Darie
  • Date: 2011-01-07 17:15:16 UTC
  • mfrom: (1.1.4 upstream) (1.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110107171516-klmadnjiktybzswf
Tags: 20110107-1
[ Stefano Zacchiroli ]
* debian/TODO.Debian: add pending TODO items

[ Colin Darie ]
* New maintainer. (Closes: #579786)
* List of recommendations (REC) changes (Closes: #604968):
  - Associating Style Sheets with XML documents 1.0 (Second Edition)
    (updated 28/10/2010)
  - Device Description Repository Simple API (new 05/12/2008)
  - EMMA: Extensible MultiModal Annotation markup language
    (new 10/02/2009)
  - Element Traversal Specification (new 22/12/2008)
  - Extensible Markup Language (XML) 1.0 (Fifth Edition)
    (updated 26/11/2008)
  - Mobile Web Best Practices 1.0 (new 29/07/2008)
  - Namespaces in XML 1.0 (Third Edition) (updated 08/12/2009)
  - OWL 2 Web Ontology Language Conformance (new 27/10/2009)
  - OWL 2 Web Ontology Language Direct Semantics (new 27/10/2009)
  - OWL 2 Web Ontology Language Document Overview (new 27/10/2009)
  - OWL 2 Web Ontology Language Mapping to RDF Graphs (new 27/10/2009)
  - OWL 2 Web Ontology Language New Features and Rationale
    (new 27/10/2009)
  - OWL 2 Web Ontology Language Primer (new 27/10/2009)
  - OWL 2 Web Ontology Language Profiles (new 27/10/2009)
  - OWL 2 Web Ontology Language Quick Reference Guide (new 27/10/2009)
  - OWL 2 Web Ontology Language RDF-Based Semantics (new 27/10/2009)
  - OWL 2 Web Ontology Language Structural Specification and
    Functional-Style Syntax (new 27/10/2009)
  - OWL 2 Web Ontology Language XML Serialization (new 27/10/2009)
  - Pronunciation Lexicon Specification (PLS) Version 1.0
    (new 14/10/2008)
  - Protocol for Web Description Resources (POWDER): Description Resources
    (new 01/09/2009)
  - Protocol for Web Description Resources (POWDER): Formal Semantics
    (new 01/09/2009)
  - Protocol for Web Description Resources (POWDER): Grouping of Resources
    (new 01/09/2009)
  - RDFa in XHTML: Syntax and Processing (new 14/10/2008)
  - RIF Basic Logic Dialect (new 22/06/2010)
  - RIF Core Dialect (new 22/06/2010)
  - RIF Datatypes and Built-Ins 1.0 (new 22/06/2010)
  - RIF Framework for Logic Dialects (new 22/06/2010)
  - RIF Production Rule Dialect (new 22/06/2010)
  - RIF RDF and OWL Compatibility (new 22/06/2010)
  - SKOS Simple Knowledge Organization System Reference (new 18/08/2009)
  - Scalable Vector Graphics (SVG) Tiny 1.2 Specification
    (new 22/12/2008)
  - Service Modeling Language Interchange Format Version 1.1
    (new 12/05/2009)
  - Service Modeling Language, Version 1.1 (new 12/05/2009)
  - Speech Syn8hesis Markup Language (SSML) Version 1.1 (new 07/09/2010)
  - Synchronized Multimedia Integration Language (SMIL 3.0)
    (updated 01/12/2008)
  - W3C mobileOK Basic Tests 1.0 (new 08/12/2008)
  - Web Content Accessibility Guidelines (WCAG) 2.0 (new 11/12/2008)
  - Web Security Context: User Interface Guidelines (new 12/08/2010)
  - WebCGM 2.1 (new 01/03/2010)
  - XForms 1.1 (updated 20/10/2009)
  - XHTML-Print - Second Edition (new 23/11/2010)
  - XHTML™ 1.1 - Module-based XHTML (updated 07/10/2010)
  - XHTML™ Basic 1.1 - Second Edition (updated 07/10/2010)
  - XHTML™ Modularization 1.1 - Second Edition (new 29/07/2010)
  - XML Base (Second Edition) (updated 28/01/2009)
  - XML Entity Definitions for Characters (new 01/04/2010)
  - XML Linking Language (XLink) Version 1.1 (new 06/05/2010)
  - XML Path Language (XPath) 2.0 (Second Edition) (new 14/12/2010)
  - XML Syntax for XQuery 1.0 (XQueryX) (Second Edition) (new 14/12/2010)
  - XProc: An XML Pipeline Language (new 11/05/2010)
  - XQuery 1.0 and XPath 2.0 Data Model (XDM) (Second Edition)
    (updated 14/12/2010)
  - XQuery 1.0 and XPath 2.0 Formal Semantics (Second Edition)
    (updated 14/12/2010)
  - XQuery 1.0 and XPath 2.0 Functions and Operators (Second Edition)
    (updated 14/12/2010)
  - XQuery 1.0: An XML Query Language (Second Edition) (new 14/12/2010)
  - XSLT 2.0 and XQuery 1.0 Serialization (Second Edition)
    (updated 14/12/2010)
  - rdf:PlainLiteral: A Datatype for RDF Plain Literals (new 27/10/2009)
* From now, this package include PR and CR: added a NEWS entry about it
* List of PR and CR changes (some of them were previously included as REC):
  - A MathML for CSS Profile (new PR 10/08/2010)
  - CSS Color Module Level 3 (new PR 28/10/2010)
  - CSS Marquee Module Level 3 (new CR 05/12/2008)
  - CSS Mobile Profile 2.0 (new CR 10/12/2008)
  - CSS Multi-column Layout Module (new CR 17/12/2009)
  - CSS Namespaces Module (new CR 23/05/2008)
  - CSS Style Attributes (new CR 12/10/2010)
  - CSS TV Profile 1.0 (new CR 14/05/2003)
  - CSS3 Basic User Interface Module (new CR 11/05/2004)
  - CSS3 Ruby Module (new CR 14/05/2003)
  - Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification
    (updated CR 23/04/2009)
  - Character Model for the World Wide Web 1.0: Resource Identifiers
    (new CR 22/11/2004)
  - Digital Signatures for Widgets (new CR 24/06/2010)
  - Efficient XML Interchange (EXI) Format 1.0 (new CR 08/12/2009)
  - Geolocation API Specification (new CR 07/09/2010)
  - Mathematical Markup Language (MathML) Version 3.0 (new PR 10/08/2010)
  - Media Queries (new CR 27/07/2010)
  - Mobile Web Application Best Practices (new PR 21/10/2010)
  - Selectors API Level 1 (new CR 22/12/2009)
  - Selectors Level 3 (new PR 15/12/2009)
  - The 'view-mode' Media Feature (new CR 24/06/2010)
  - Timed Text Markup Language (TTML) 1.0 (new PR 14/09/2010)
  - Voice Browser Call Control: CCXML Version 1.0 (new CR 01/04/2010)
  - W3C XML Schema Definition Language (XSD): Component Designators
    (new CR 19/01/2010)
  - Web Services Choreography Description Language Version 1.0
    (new CR 09/11/2005)
  - Widget Access Request Policy (new CR 20/04/2010)
  - XForms 1.0 Basic Profile (new CR 14/10/2003)
  - XML Binding Language (XBL) 2.0 (new CR 16/03/2007)
  - XML Fragment Interchange (new CR 12/02/2001)
  - XMLHttpRequest (new CR 03/08/2010)
  - XQuery Update Facility 1.0 (new CR 09/06/2009)
  - XQuery Update Facility 1.0 Requirements (new CR 14/03/2008)
  - XQuery Update Facility 1.0 Use Cases (new CR 14/03/2008)
  - XQuery and XPath Full Text 1.0 (new CR 28/01/2010)
* Bump Standard-Version to 3.9.1 (no changes required)
* debian/control.in
  - Converting repo from svn to git: update Vcs-* fields accordingly
  - Added Depends: ${misc:Depends} as recommended by debhelper
* debian/rules:
  - Redirect output of wget to a logfile
  - Ignore .jar extension
  - Exclude a javadoc/ directory: this would break the doc-base process
  - Added a fix-paths target because of broken links in the tr.rdf
  - Ignore error status returned by wget because of broken links,
    so the download target can be fully completed
  - wrap lines > 80 char in control-index.txt copied in debian/control to
    avoid lintian warnings
* Patches:
  - Switch to 3.0 (quilt) source format
  - Drop rec-dom2-html-url patch, no longer necessary
  - Add fix-link-REC-PICS-labels-961031.patch
  - Convert (and update) css-local-images.patch
* Clean up TODO.Debian
* debian/README.source: explicit the steps to build the package from git
* Added unapply-patches to debian/source/local-options

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2
 
<title>HTML 3.2 Reference Specification</title>
3
 
<body bgcolor="#FFF6F0"
4
 
 background="http://www.w3.org/TR/REC-html32-19970114/images/recbg.jpg"
5
 
 text="#000000"
6
 
 link="#C00000"
7
 
 vlink="#800000" alink="#FF00FF">
8
 
<!--basefont size=3-->
9
 
<h2 align=right><A HREF="http://www.w3.org/"><img align=left border=0 alt="W3C:"
10
 
width=72 height=48
11
 
src="http://www.w3.org/pub/WWW/Icons/WWW/w3c_home"></A>
12
 
REC-html32</h2>
13
 
 
14
 
<h1 align=center>HTML 3.2 Reference Specification</h1>
15
 
 
16
 
<h3 align=center>W3C Recommendation <i>14-Jan-1997</i></h3>
17
 
 
18
 
<p>Author: <i><a href="http://www.w3.org/People/Raggett">Dave Raggett</a></i>
19
 
<tt>&lt;<a href="mailto:dsr@w3.org">dsr@w3.org</a>&gt;</tt></p>
20
 
 
21
 
<hr>
22
 
<h3>Status of this document</h3>
23
 
 
24
 
<p>This document has been reviewed by W3C members and other interested
25
 
parties and has been endorsed by the Director as a W3C Recommendation.
26
 
It is a stable document and may be used as reference material or cited
27
 
as a normative reference from another document. W3C's role in making
28
 
the Recommendation is to draw attention to the specification and to
29
 
promote its widespread deployment.  This enhances the functionality
30
 
and interoperability of the Web.
31
 
 
32
 
<p>A list of current W3C Recommendations and other technical documents
33
 
can be found at
34
 
<a href="http://www.w3.org/pub/WWW/TR/">http://www.w3.org/pub/WWW/TR/</A>.
35
 
<hr>
36
 
 
37
 
<h2>Abstract</h2>
38
 
 
39
 
<p>The HyperText Markup Language (HTML) is a simple markup language used
40
 
to create hypertext documents that are portable from one platform to
41
 
another. HTML documents are SGML documents with generic semantics that
42
 
are appropriate for representing information from a wide range of
43
 
applications. This specification defines HTML version 3.2. HTML 3.2 aims
44
 
to capture recommended practice as of early '96 and as such to be used
45
 
as a replacement for HTML 2.0 (<a href="red.gif.html#refs">RFC 1866</a>).
46
 
 
47
 
<hr>
48
 
 
49
 
<h2>Contents</h2>
50
 
 
51
 
<ul>
52
 
<li><a href="red.gif.html#intro">Introduction to HTML 3.2</a>
53
 
<li><a href="red.gif.html#sgml">HTML as an SGML application</a>
54
 
<li><a href="red.gif.html#html">The Structure of HTML documents</a>
55
 
<li><a href="red.gif.html#head">The HEAD element and its children</a>
56
 
<li><a href="red.gif.html#body">The BODY element and its children</a>
57
 
<li><a href="red.gif.html#catalog">Sample SGML Open Catalog for HTML 3.2</a>
58
 
<li><a href="red.gif.html#sgmldecl">SGML Declaration for HTML 3.2</a>
59
 
<li><a href="red.gif.html#dtd">HTML 3.2 Document Type Definition</a>
60
 
<li><a href="red.gif.html#latin1">Character Entities for ISO Latin-1</a>
61
 
<li><a href="red.gif.html#charset">Table of printable Latin-1 Character codes</a>
62
 
<li><a href="red.gif.html#acks">Acknowledgements</a>
63
 
<li><a href="red.gif.html#refs">Further Reading ...</a>
64
 
</ul>
65
 
 
66
 
<hr>
67
 
 
68
 
<h2><a name=intro>Introduction to HTML 3.2</a></h2>
69
 
 
70
 
<p>HTML 3.2 is W3C's specification for HTML, developed in early `96
71
 
together with vendors including IBM, Microsoft, Netscape Communications
72
 
Corporation, Novell, SoftQuad, Spyglass, and Sun Microsystems. HTML 3.2
73
 
adds widely deployed features such as tables, applets and text flow
74
 
around images, while providing full backwards compatibility with the
75
 
existing standard HTML 2.0. 
76
 
 
77
 
<p>W3C is continuing to work with vendors on extensions for
78
 
accessibility features, multimedia objects, scripting, style sheets,
79
 
layout, forms, math and internationalization. W3C plans on incorporating
80
 
this work in further versions of HTML.
81
 
 
82
 
<h3><a name=sgml>HTML as an SGML Application</a></h3>
83
 
 
84
 
<p>HTML 3.2 is an SGML application conforming to International Standard
85
 
ISO 8879 -- Standard Generalized Markup Language. As an SGML
86
 
application, the syntax of conforming HTML 3.2 documents is defined by
87
 
the combination of the <a href="red.gif.html#sgmldecl">SGML declaration</a> and the
88
 
<a href="red.gif.html#dtd">document type definition</a> (DTD). This specification
89
 
defines the intended interpretation of HTML 3.2 elements, and places
90
 
further constraints on the permitted syntax which are otherwise
91
 
inexpressible in the DTD.
92
 
 
93
 
<p>The SGML rules for record boundaries are tricky. In particular, a
94
 
record end immediately following a start tag should be discarded. For
95
 
example:
96
 
 
97
 
<pre>&lt;P&gt;
98
 
Text</pre>
99
 
 
100
 
<p>
101
 
is equivalent to:</p>
102
 
 
103
 
<pre>&lt;P&gt;Text</pre>
104
 
 
105
 
<p>Similarly, a record end immediately preceding an end tag should be
106
 
discarded. For example:
107
 
 
108
 
<pre>Text
109
 
&lt;/P&gt;</pre>
110
 
 
111
 
<p>is equivalent to:
112
 
</p>
113
 
 
114
 
<pre>Text&lt;/P&gt;</pre>
115
 
 
116
 
<p>Except within literal text (e.g. the <samp>PRE</samp> element), HTML
117
 
treats contiguous sequences of white space characters as being
118
 
equivalent to a single space character (ASCII decimal 32). These rules
119
 
allow authors considerable flexibility when editing the marked-up text
120
 
directly. Note that future revisions to HTML may allow for the
121
 
interpretation of the horizontal tab character (ASCII decimal 9) with
122
 
respect to a tab rule defined by an associated style sheet.
123
 
 
124
 
<p>SGML entities in PCDATA content or in CDATA attributes are expanded
125
 
by the parser, e.g. <samp>&amp;#233;</samp> is expanded to the ISO
126
 
Latin-1 character decimal 233 (a lower case letter e with an acute
127
 
accent). This could also have been written as a named character entity,
128
 
e.g. <samp>&amp;eacute;</samp>. The &amp; character can be included
129
 
in its own right using the named character entity <samp>&amp;amp;</samp>.
130
 
 
131
 
<p>HTML allows CDATA attributes to be unquoted provided the attribute
132
 
value contains only letters (a to z and A to Z), digits (0 to 9),
133
 
hyphens (ASCII
134
 
decimal 45) or, periods (ASCII decimal 46). Attribute values can
135
 
be quoted using double or single quote marks (ASCII decimal 34 and
136
 
39 respectively). Single quote marks can be included within the
137
 
attribute value when the value is delimited by double quote marks,
138
 
and vice versa.
139
 
 
140
 
<p>Note that some user agents require attribute minimisation for the
141
 
following attributes: <samp>COMPACT</samp>, <samp>ISMAP</samp>,
142
 
<samp>CHECKED</samp>, <samp>NOWRAP</samp>, <samp>NOSHADE</samp> and
143
 
<samp>NOHREF</samp>. These user agents don't accept syntax such as
144
 
<samp>COMPACT=COMPACT</samp> or <samp>ISMAP=ISMAP</samp> although this
145
 
is legitimate according to the HTML 3.2 DTD.
146
 
 
147
 
<p>The SGML declaration and the DTD for use with HTML 3.2 are given in
148
 
appendices. Further guidelines for parsing HTML are given in
149
 
<a href="red.gif.html#refs">WD-html-lex</a>.
150
 
 
151
 
<hr>
152
 
<h3><a name=html>The Structure of HTML documents</a></h3>
153
 
 
154
 
 
155
 
<p>HTML 3.2 Documents start with a &lt;!DOCTYPE&gt; declaration
156
 
followed by an HTML element containing a <a href="red.gif.html#head"><samp>HEAD</samp></a>
157
 
and then a <a href="red.gif.html#body"><samp>BODY</samp></a> element:
158
 
 
159
 
<pre>  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&gt;
160
 
  &lt;HTML&gt;
161
 
  &lt;HEAD&gt;
162
 
  &lt;TITLE&gt;A study of population dynamics&lt;/TITLE&gt;
163
 
  <i>... other head elements</i>
164
 
  &lt;/HEAD&gt;
165
 
  &lt;BODY&gt;
166
 
  <i>... document body</i>
167
 
  &lt;/BODY&gt;
168
 
  &lt;/HTML&gt;</pre>
169
 
 
170
 
<P>In practice, the <samp>HTML</samp>, <a href="red.gif.html#head"><samp>HEAD</samp></a>
171
 
and <a href="red.gif.html#body"><samp>BODY</samp></a> start and end tags can be omitted
172
 
from the markup as these can be inferred in all cases by parsers conforming
173
 
to the <a href="red.gif.html#dtd">HTML 3.2 DTD</a>.
174
 
 
175
 
<p>Every conforming HTML 3.2 document <b>must</b> start with the
176
 
<samp>&lt;!DOCTYPE&gt;</samp> declaration that is needed to distinguish
177
 
HTML 3.2 documents from other versions of HTML. The HTML specification
178
 
is not concerned with storage entities. As a result, it is not required
179
 
that the document type declaration reside in the same storage entity
180
 
(i.e. file). A Web site may choose to dynamically prepend HTML files
181
 
with the document type declaration if it is known that all such HTML
182
 
files conform to the HTML 3.2 specification.
183
 
 
184
 
<p>Every HTML 3.2 document must also include the descriptive title
185
 
element. A minimal HTML 3.2 document thus looks like:
186
 
 
187
 
<pre>  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&gt;
188
 
  &lt;TITLE&gt;A study of population dynamics&lt;/TITLE&gt;</pre>
189
 
 
190
 
 
191
 
<p><i>Note: the word "Final" replaces "Draft" now that the HTML 3.2
192
 
specification has been ratified by the W3C member organizations.</i>
193
 
 
194
 
<hr>
195
 
<h2><a name=head>The HEAD element</a></h2>
196
 
 
197
 
<p>This contains the document head, but you can always omit both
198
 
the start and end tags for <samp>HEAD</samp>. The contents of the
199
 
document head is an unordered collection of the following elements:
200
 
 
201
 
<ul>
202
 
<li><a href="red.gif.html#title">The TITLE element</a>
203
 
<li><a href="red.gif.html#script">The STYLE element</a>
204
 
<li><a href="red.gif.html#script">The SCRIPT element</a>
205
 
<li><a href="red.gif.html#isindex">The ISINDEX element</a>
206
 
<li><a href="red.gif.html#base">The BASE element</a>
207
 
<li><a href="red.gif.html#meta">The META element</a>
208
 
<li><a href="red.gif.html#link">The LINK element</a>
209
 
</ul>
210
 
 
211
 
<pre>&lt;!ENTITY % head.content "TITLE &amp; ISINDEX? &amp; BASE?"&gt;
212
 
&lt;!ENTITY % head.misc "SCRIPT|STYLE|META|LINK"&gt;
213
 
 
214
 
&lt;!ELEMENT HEAD O O  (%head.content) +(%head.misc)&gt;</pre>
215
 
 
216
 
<p>The %head.misc entity is used to allow the associated elements
217
 
to occur multiple times at arbitrary positions within the HEAD.
218
 
The following elements can be part of the document head:
219
 
 
220
 
<dl>
221
 
<dt><b><a href="red.gif.html#title">TITLE</a></b> defines the document title,
222
 
    and is always needed.
223
 
<dt><b><a href="red.gif.html#isindex">ISINDEX</a></b> for simple keyword searches,
224
 
    see <samp>PROMPT</samp> attribute.
225
 
<dt><b><a href="red.gif.html#base">BASE</a></b> defines base URL for resolving
226
 
    relative URLs.
227
 
<dt><b><a href="red.gif.html#script">SCRIPT</a></b> reserved for future use
228
 
    with scripting languages.
229
 
<dt><b><a href="red.gif.html#style">STYLE</a></b> reserved for future use
230
 
    with style sheets.
231
 
<dt><b><a href="red.gif.html#meta">META</a></b> used to supply meta info as
232
 
    name/value pairs.
233
 
<dt><b><a href="red.gif.html#link">LINK</a></b> used to define relationships
234
 
    with other documents.
235
 
</dl>
236
 
 
237
 
<p><samp>TITLE</samp>, <samp>SCRIPT</samp> and <samp>STYLE</samp> are
238
 
containers and require both start and end tags. The other elements are
239
 
not containers so that end tags are forbidden. Note that conforming
240
 
browsers won't render the contents of <samp>SCRIPT</samp> and
241
 
<samp>STYLE</samp> elements.
242
 
 
243
 
<h3><a name=title>TITLE</a></h3>
244
 
 
245
 
<pre>&lt;!ELEMENT TITLE - -  (#PCDATA)* -(%head.misc)&gt;</pre>
246
 
 
247
 
<p>Every HTML 3.2 document <b>must</b> have exactly one
248
 
<samp>TITLE</samp> element in the document's <samp>HEAD</samp>. It
249
 
provides an advisory title which can be displayed in a user agent's
250
 
window caption etc. The content model is PCDATA. As a result, character
251
 
entities can be used for accented characters and to escape special
252
 
characters such as &amp; and &lt;. Markup is not permitted in the
253
 
content of a <samp>TITLE</samp> element.
254
 
 
255
 
 
256
 
<p>Example TITLE element:
257
 
 
258
 
<pre>    &lt;TITLE&gt;A study of population dynamics&lt;/TITLE&gt;</pre>
259
 
 
260
 
<h3><a name=style>STYLE</a> and <a name=script>SCRIPT</a></h3>
261
 
 
262
 
<pre>
263
 
&lt;!ELEMENT STYLE  - - CDATA -- placeholder for style info --&gt;
264
 
&lt;!ELEMENT SCRIPT - - CDATA -- placeholder for script statements --&gt;
265
 
</pre>
266
 
 
267
 
<p>These are place holders for the introduction of style sheets and
268
 
client-side scripts in future versions of HTML. User agents should hide
269
 
the contents of these elements.
270
 
 
271
 
<p>These elements are defined with CDATA as the content type. As a
272
 
result they may contain only SGML characters. All markup characters or
273
 
delimiters are ignored and passed as data to the application, except for
274
 
ETAGO ("&lt;/") delimiters followed immediately by a name character
275
 
[a-zA-Z]. This means that the element's end-tag (or that of an element
276
 
in which it is nested) is recognized, while an error occurs if the ETAGO
277
 
is invalid.
278
 
 
279
 
<h3><a name=isindex>ISINDEX</a></h3>
280
 
 
281
 
<pre>    &lt;!ELEMENT ISINDEX - O EMPTY&gt;
282
 
    &lt;!ATTLIST ISINDEX
283
 
        prompt CDATA #IMPLIED -- prompt message --&gt;</pre>
284
 
 
285
 
<p>The <samp>ISINDEX</samp> element indicates that the user agent should
286
 
provide a single line text input field for entering a query string.
287
 
There are no restrictions on the number of characters that can be
288
 
entered. The <samp>PROMPT</samp> attribute can be used to specify a
289
 
prompt string for the input field, e.g.
290
 
 
291
 
<pre>    &lt;ISINDEX PROMPT="Search Phrase"&gt;</pre>
292
 
 
293
 
<p>The semantics for <samp>ISINDEX</samp> are currently well defined
294
 
only when the base URL for the enclosing document is an HTTP URL.
295
 
Typically, when the user presses the enter (return) key, the query
296
 
string is sent to the server identified by the base URL for this
297
 
document. For example, if the query string entered is "ten green apples"
298
 
and the base URL is:
299
 
 
300
 
<pre>    http://www.acme.com/</pre>
301
 
 
302
 
<p>then the query generated is:
303
 
 
304
 
<pre>    http://www.acme.com/?ten+green+apples"</pre>
305
 
 
306
 
<p>Note that space characters are mapped to "+" characters and that
307
 
normal URL character escaping mechanisms apply. For further details see
308
 
the <a href="red.gif.html#refs">HTTP</a> specification.
309
 
 
310
 
<p><i><b>Note</b> in practice, the query string is resticted to Latin-1
311
 
as there is no current mechanism for the URL to specify a character
312
 
set for the query.</i>
313
 
 
314
 
<h3><a name=base>BASE</a></h3>
315
 
 
316
 
<pre>    &lt;!ELEMENT BASE - O EMPTY&gt;
317
 
    &lt;!ATTLIST BASE
318
 
        href %URL  #REQUIRED
319
 
        &gt;</pre>
320
 
 
321
 
<p>The <samp>BASE</samp> element gives the base URL for dereferencing
322
 
relative URLs, using the rules given by the URL specification, e.g.
323
 
 
324
 
<pre>    &lt;BASE href="http://www.acme.com/intro.html"&gt;
325
 
     ...
326
 
    &lt;IMG SRC="icons/logo.gif"&gt;</pre>
327
 
 
328
 
<p>The image is deferenced to
329
 
 
330
 
<pre>    http://www.acme.com/icons/logo.gif</pre>
331
 
 
332
 
<p>In the absence of a <samp>BASE</samp> element the document URL should
333
 
be used. Note that this is not necessarily the same as the URL used to
334
 
request the document, as the base URL may be overridden by an HTTP
335
 
header accompanying the document.
336
 
 
337
 
<h3><a name=meta>META</a></h3>
338
 
 
339
 
<pre>
340
 
&lt;!ELEMENT META - O EMPTY    -- Generic Metainformation --&gt;
341
 
&lt;!ATTLIST META
342
 
        http-equiv  NAME    #IMPLIED  -- HTTP response header name  --
343
 
        name        NAME    #IMPLIED  -- metainformation name       --
344
 
        content     CDATA   #REQUIRED -- associated information     --
345
 
        &gt;
346
 
</pre>
347
 
 
348
 
<p>The <samp>META</samp> element can be used to include name/value pairs
349
 
describing properties of the document, such as author, expiry date,
350
 
a list of key words etc. The <samp>NAME</samp> attribute specifies the
351
 
property name while the <samp>CONTENT</samp> attribute specifies the
352
 
property value, e.g.
353
 
 
354
 
<pre>    &lt;META NAME="Author" CONTENT="Dave Raggett"&gt;</pre>
355
 
 
356
 
<p>The <samp>HTTP-EQUIV</samp> attribute can be used in place of the
357
 
<samp>NAME</samp> attribute and has a special significance when
358
 
documents are retrieved via the Hypertext Transfer Protocol (HTTP). HTTP
359
 
servers may use the property name specified by the HTTP-EQUIV attribute
360
 
to create an RFC 822 style header in the HTTP response. This can't be
361
 
used to set certain HTTP headers though, see the HTTP specification for
362
 
details.
363
 
 
364
 
<pre>    &lt;META HTTP-EQUIV="Expires" CONTENT="Tue, 20 Aug 1996 14:25:27 GMT"&gt;</pre>
365
 
 
366
 
<p>will result in the HTTP header:
367
 
 
368
 
<pre>    Expires: Tue, 20 Aug 1996 14:25:27 GMT</pre>
369
 
 
370
 
<p>This can be used by caches to determine when to fetch a fresh copy
371
 
of the associated document.
372
 
 
373
 
<h3><a name=link>LINK</a></h3>
374
 
 
375
 
<p><samp>LINK</samp> provides a media independent method for defining
376
 
relationships with other documents and resources. <samp>LINK</samp> has
377
 
been part of HTML since the very early days, although few browsers as
378
 
yet take advantage of it (most still ignore <samp>LINK</samp> elements).
379
 
 
380
 
<p>LINK elements can be used <em>in principle</em>:
381
 
 
382
 
<ol type="a">
383
 
<li>for document specific navigation toolbars or menus 
384
 
<li>to control how collections of
385
 
    HTML files are rendered into printed documents
386
 
<li>for linking associated resources such as
387
 
    style sheets and scripts
388
 
<li>to provide alternative forms of the current document
389
 
</ol>
390
 
 
391
 
<pre>
392
 
    &lt;!ELEMENT LINK - O EMPTY&gt;
393
 
    &lt;!ATTLIST LINK
394
 
        href    %URL    #IMPLIED    -- URL for linked resource --
395
 
        rel     CDATA   #IMPLIED    -- forward link types --
396
 
        rev     CDATA   #IMPLIED    -- reverse link types --
397
 
        title   CDATA   #IMPLIED    -- advisory title string --
398
 
        &gt;
399
 
</pre>
400
 
 
401
 
<dl>
402
 
<dt><b>href</b>
403
 
<dd>Specifies a URL designating the linked resource.
404
 
 
405
 
<dt><b>rel</b>
406
 
<dd>The forward relationship also known as the "link type". It specifies
407
 
a named relationship from the enclosing document to the resource
408
 
specified by the <samp>HREF</samp> attribute. HTML link relationships
409
 
are as yet unstandardized, although some conventions have been
410
 
established.
411
 
 
412
 
<dt><b>rev</b>
413
 
<dd>This defines a reverse relationship. A link from document A to
414
 
document B with <samp>REV=<em>relation</em></samp> expresses the same
415
 
relationship as a link from B to A with <samp>REL=<em>relation</em></samp>.
416
 
<samp>REV=made</samp> is sometimes used to identify the document author,
417
 
either the author's email address with a mailto URL, or a link to the
418
 
author's home page.
419
 
 
420
 
<dt><b>title</b>
421
 
<dd>An advisory title for the linked resource.
422
 
</dl>
423
 
 
424
 
<p>Here are some proposed relationship values:
425
 
 
426
 
<dl>
427
 
<dt><samp>rel=top</samp>
428
 
<dd>The link references the top of a hierarchy, e.g.
429
 
the first or cover page in a collection.
430
 
 
431
 
 
432
 
<dt><samp>rel=contents</samp>
433
 
<dd>The link references a document serving as a table of contents.
434
 
 
435
 
<dt><samp>rel=index</samp>
436
 
<dd>The link references a document providing an index
437
 
for the current document.
438
 
 
439
 
<dt><samp>rel=glossary</samp>
440
 
<dd>The link references a document providing a glossary
441
 
of terms that are relevant to the current document.
442
 
 
443
 
<dt><samp>rel=copyright</samp>
444
 
<dd>The link references a copyright statement for
445
 
the current document.
446
 
 
447
 
<dt><samp>rel=next</samp>
448
 
<dd>The link references the next document to visit in a guided tour.
449
 
It can be used, for example, to preload the next page.
450
 
 
451
 
<dt><samp>rel=previous</samp>
452
 
<dd>The link references the previous document in a guided tour.
453
 
 
454
 
<dt><samp>rel=help</samp>
455
 
<dd>The link references a document offering help, e.g. describing
456
 
the wider context and offering further links to relevant documents.
457
 
This is aimed at reorienting users who have lost their way.
458
 
 
459
 
<dt><samp>rel=search</samp>
460
 
<dd>The link references a page for searching material related
461
 
to a collection of pages
462
 
 
463
 
</dl>
464
 
 
465
 
<p>Example <samp>LINK</samp> elements: 
466
 
 
467
 
<pre>    &lt;LINK REL=Contents HREF=toc.html&gt;
468
 
    &lt;LINK REL=Previous HREF=doc31.html&gt;
469
 
    &lt;LINK REL=Next HREF=doc33.html&gt;
470
 
 
471
 
    &lt;LINK REL=Chapter REV=Contents HREF=chapter2.html&gt;</pre>
472
 
 
473
 
 
474
 
<hr>
475
 
<h2><a name=body>The BODY element</a></h2>
476
 
 
477
 
<p>This contains the document body. Both start and end tags for
478
 
<samp>BODY</samp> may be omitted. The body can contain a wide range
479
 
of elements:
480
 
 
481
 
<ul>
482
 
<li><a href="red.gif.html#headings">Headings (H1 - H6)</a>
483
 
<li><a href="red.gif.html#address">The ADDRESS element</a>
484
 
<li><a href="red.gif.html#block">Block level Elements</a>
485
 
<li><a href="red.gif.html#textlevel">Text level elements</a>
486
 
</ul>
487
 
 
488
 
<p>The key attributes are: <samp>BACKGROUND</samp>,
489
 
<samp>BGCOLOR</samp>, <samp>TEXT</samp>, <samp>LINK</samp>,
490
 
<samp>VLINK</samp> and <samp>ALINK</samp>. These can be used to set a
491
 
repeating background image, plus background and foreground colors for
492
 
normal text and hypertext links.
493
 
 
494
 
<pre>&lt;!ENTITY % body.content "(%heading | %text | %block | ADDRESS)*"&gt;
495
 
 
496
 
&lt;!ENTITY % color "CDATA" -- a color specification: #HHHHHH @@ details? --&gt;
497
 
 
498
 
&lt;!ENTITY % body-color-attrs "
499
 
        bgcolor %color #IMPLIED
500
 
        text %color #IMPLIED
501
 
        link %color #IMPLIED
502
 
        vlink %color #IMPLIED
503
 
        alink %color #IMPLIED
504
 
        "&gt;
505
 
 
506
 
&lt;!ELEMENT BODY O O  %body.content&gt;
507
 
&lt;!ATTLIST BODY
508
 
        background %URL #IMPLIED  -- texture tile for document background --
509
 
        %body-color-attrs;  -- bgcolor, text, link, vlink, alink --
510
 
        &gt;</pre>
511
 
 
512
 
<p>Example:
513
 
 
514
 
<pre> &lt;body bgcolor=white text=black link=red vlink=maroon alink=fuchsia&gt;</pre>
515
 
 
516
 
 
517
 
<dl>
518
 
<dt><b>bgcolor</b>
519
 
<dd>Specifies the background color for the document body.
520
 
See below for the syntax of color values.
521
 
 
522
 
<dt><b>text</b>
523
 
<dd>Specifies the color used to stroke the document's text.
524
 
This is generally used when you have changed the background
525
 
color with the <samp>BGCOLOR</samp> or <samp>BACKGROUND</samp> attributes.
526
 
 
527
 
<dt><b>link</b>
528
 
<dd>Specifies the color used to stroke the text for unvisited hypertext
529
 
links.
530
 
 
531
 
<dt><b>vlink</b>
532
 
<dd>Specifies the color used to stroke the text for visited hypertext
533
 
links.
534
 
 
535
 
<dt><b>alink</b>
536
 
<dd>Specifies the highlight color used to stroke the text for hypertext
537
 
links at the moment the user clicks on the link.
538
 
 
539
 
<dt><b>background</b>
540
 
<dd>Specifies a URL for an image that will be used to tile the document
541
 
background.
542
 
</dl>
543
 
 
544
 
<p><a name=colors>Colors</a> are given in the <a href="red.gif.html#refs">sRGB</a>
545
 
color space as hexadecimal numbers (e.g. <samp>COLOR="#C0FFC0"</samp>),
546
 
or as one of 16 widely understood color names. These colors were
547
 
originally picked as being the standard 16 colors supported with the
548
 
Windows VGA palette.</p>
549
 
 
550
 
<table align=center width="80%" border=0 cellspacing=10 cellpadding=0>
551
 
<caption><b>Color names and sRGB values</b><br></caption>
552
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/black.gif"><td>Black  = "#000000"
553
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/green.gif"><td>Green  = "#008000"<br></tr>
554
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/silver.gif"><td>Silver = "#C0C0C0"
555
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/lime.gif"><td>Lime   = "#00FF00"<br></tr>
556
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/gray.gif"><td>Gray   = "#808080"
557
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/olive.gif"><td>Olive  = "#808000"<br></tr>
558
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/white.gif"><td>White  = "#FFFFFF"
559
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/yellow.gif"><td>Yellow = "#FFFF00"<br></tr>
560
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/maroon.gif"><td>Maroon = "#800000"
561
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/navy.gif"><td>Navy   = "#000080"<br></tr>
562
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/red.gif"><td>Red    = "#FF0000"
563
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/blue.gif"><td>Blue   = "#0000FF"<br></tr>
564
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/purple.gif"><td>Purple = "#800080"
565
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/teal.gif"><td>Teal   = "#008080"<br></tr>
566
 
<tr><td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/fuchsia.gif"><td>Fuchsia  = "#FF00FF"
567
 
<td width=16><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/aqua.gif"><td>Aqua   = "#00FFFF"<br></tr>
568
 
</table>
569
 
 
570
 
<h3><a name=level>Block and Text level elements</a></h3>
571
 
 
572
 
<p>Most elements that can appear in the document body fall into one of
573
 
two groups: block level elements which cause paragraph breaks, and text
574
 
level elements which don't. Common block level elements include
575
 
<samp>H1</samp> to <samp>H6</samp> (headers), <samp>P</samp>
576
 
(paragraphs) <samp>LI</samp> (list items), and <samp>HR</samp>
577
 
(horizontal rules). Common text level elements include <samp>EM</samp>,
578
 
<samp>I</samp>, <samp>B</samp> and <samp>FONT</samp> (character
579
 
emphasis), <samp>A</samp> (hypertext links), <samp>IMG</samp> and
580
 
<samp>APPLET</samp> (embedded objects) and <samp>BR</samp> (line
581
 
breaks). Note that block elements generally act as containers for text
582
 
level and other block level elements (excluding headings and address
583
 
elements), while text level elements can only contain other text level
584
 
elements. The exact model depends on the element.
585
 
 
586
 
<h3><a name=headings>Headings</a></h3>
587
 
 
588
 
<pre>
589
 
&lt;!--
590
 
  There are six levels of headers from H1 (the most important)
591
 
  to H6 (the least important).
592
 
--&gt;
593
 
 
594
 
&lt;!ELEMENT ( %heading )  - -  (%text;)*&gt;
595
 
&lt;!ATTLIST ( %heading )
596
 
        align  (left|center|right) #IMPLIED
597
 
        &gt;
598
 
</pre>
599
 
 
600
 
<p><samp>H1</samp>, <samp>H2</samp>, <samp>H3</samp>, <samp>H4</samp>,
601
 
<samp>H5</samp> and <samp>H6</samp> are used for document headings. You
602
 
always need the start and end tags. <samp>H1</samp> elements are more
603
 
important than <samp>H2</samp> elements and so on, so that
604
 
<samp>H6</samp> elements define the least important level of headings.
605
 
More important headings are generally rendered in a larger font than
606
 
less important ones. Use the optional <samp>ALIGN</samp> attribute to
607
 
set the text alignment within a heading, e.g.
608
 
 
609
 
<pre>  &lt;H1 ALIGN=CENTER&gt; <i>... centered heading ...</i> &lt;/H1&gt;</pre>
610
 
 
611
 
<p>The default is left alignment, but this can be overridden by an
612
 
enclosing <a href="red.gif.html#div"><samp>DIV</samp></a> or <a
613
 
href="red.gif.html#center"><samp>CENTER</samp></a> element.
614
 
 
615
 
<h3><a name=address>ADDRESS</a></h3>
616
 
 
617
 
<pre>    &lt;!ENTITY % address.content "((%text;) | P)*"&gt;
618
 
 
619
 
    &lt;!ELEMENT ADDRESS - - %address.content&gt;</pre>
620
 
 
621
 
<p>The <samp>ADDRESS</samp> element requires start and end tags, and
622
 
specifies information such as authorship and contact details for the
623
 
current document. User agents should render the content with
624
 
paragraph-breaks before and after. Note that the content is restricted
625
 
to paragraphs, plain text and text-like elements as defined by the %text
626
 
entity.
627
 
 
628
 
<P>Example:
629
 
 
630
 
<PRE>&lt;ADDRESS&gt;
631
 
Newsletter editor&lt;BR&gt;
632
 
J.R. Brown&lt;BR&gt;
633
 
8723 Buena Vista, Smallville, CT 01234&lt;BR&gt;
634
 
Tel: +1 (123) 456 7890
635
 
&lt;/ADDRESS&gt;</PRE>
636
 
 
637
 
<h3><a name=block>Block elements</a></h3>
638
 
 
639
 
<dl>
640
 
<dt><b><a href="red.gif.html#para">P</a></b> <i>paragraphs</i>
641
 
<dd>The paragraph element requires a start tag, but the end tag can
642
 
always be omitted. Use the <samp>ALIGN</samp> attribute to set the text
643
 
alignment within a paragraph, e.g. <samp>&lt;P ALIGN=RIGHT&gt;</samp>
644
 
 
645
 
<dt><b><a href="red.gif.html#ul">UL</a></b> <i>unordered lists</i>
646
 
<dd>These require start and end tags, and contain one or more
647
 
<samp>LI</samp> elements representing individual list items.
648
 
 
649
 
<dt><b><a href="red.gif.html#ol">OL</a></b> <i>ordered (i.e. numbered) lists</i>
650
 
<dd>These require start and end tags, and contain one or more
651
 
<samp>LI</samp> elements representing individual list items.
652
 
 
653
 
<dt><b><a href="red.gif.html#dl">DL</a></b> <i>definition lists</i>
654
 
<dd>These require start and end tags and contain <samp>DT</samp>
655
 
elements that give the terms, and <samp>DD</samp> elements that give
656
 
corresponding definitions.
657
 
 
658
 
<dt><b><a href="red.gif.html#pre">PRE</a></b> <i>preformatted text</i>
659
 
<dd>Requires start and end tags. These elements are rendered with a
660
 
monospaced font and preserve layout defined by whitespace and line
661
 
break characters.
662
 
 
663
 
<dt><b><a href="red.gif.html#div">DIV</a></b> <i>document divisions</i>
664
 
<dd>Requires start and end tags. It is used with the <samp>ALIGN</samp>
665
 
attribute to set the text alignment of the block elements it contains.
666
 
<samp>ALIGN</samp> can be one of <samp>LEFT</samp>, <samp>CENTER</samp>
667
 
or <samp>RIGHT</samp>.
668
 
 
669
 
<dt><b><a href="red.gif.html#center">CENTER</a></B> <i>text alignment</i>
670
 
<dd>Requires start and end tags. It is used to center text lines
671
 
enclosed by the <samp>CENTER</samp> element. See <samp>DIV</samp>
672
 
for a more general solution.
673
 
 
674
 
<dt><b><a href="red.gif.html#bq">BLOCKQUOTE</a></b> <i>quoted passage</i>
675
 
<dd>Requires start and end tags. It is used to enclose extended
676
 
quotations and is typically rendered with indented margins.
677
 
 
678
 
<dt><b><a href="red.gif.html#form">FORM</a></b> <i>fill-out forms</i>
679
 
<dd>Requires start and end tags. This element is used to define
680
 
a fill-out form for processing by HTTP servers. The attributes
681
 
are <samp>ACTION</samp>, <samp>METHOD</samp> and <samp>ENCTYPE</samp>.
682
 
Form elements can't be nested.
683
 
 
684
 
<dt><b><a href="red.gif.html#isindex">ISINDEX</a></b> <i>primitive HTML forms</i>
685
 
<dd>Not a container, so the end tag is forbidden. This predates
686
 
<samp>FORM</samp> and is used for simple kinds of forms which have a
687
 
single text input field, implied by this element. A single
688
 
<samp>ISINDEX</samp> can appear in the document head or body.
689
 
 
690
 
<dt><b><a href="red.gif.html#hr">HR</a></b> <i>horizontal rules</i>
691
 
<dd>Not a container, so the end tag is forbidden. attributes are
692
 
<samp>ALIGN</samp>, <samp>NOSHADE</samp>, <samp>SIZE</samp> and
693
 
<samp>WIDTH</samp>.
694
 
 
695
 
<dt><b><a href="red.gif.html#table">TABLE</a></b> <i>can be nested</i>
696
 
<dd>Requires start and end tags. Each table starts with an optional
697
 
<samp>CAPTION</samp> followed by one or more <samp>TR</samp> elements
698
 
defining table rows. Each row has one or more cells defined by
699
 
<samp>TH</samp> or <samp>TD</samp> elements. attributes for
700
 
<samp>TABLE</samp> elements are <samp>WIDTH</samp>, <samp>BORDER</samp>,
701
 
<samp>CELLSPACING</samp> and <samp>CELLPADDING</samp>.
702
 
</dl>
703
 
 
704
 
<hr>
705
 
<h3><a name=para>Paragraphs</a></h3>
706
 
 
707
 
<pre>    &lt;!ELEMENT P     - O (%text)*&gt;
708
 
    &lt;!ATTLIST P
709
 
        align  (left|center|right) #IMPLIED
710
 
        &gt;</pre>
711
 
 
712
 
<p>The <samp>P</samp> element is used to markup paragraphs. It is a
713
 
container and requires a start tag. The end tag is optional as it can
714
 
always be inferred by the parser. User agents should place paragraph
715
 
breaks before and after <samp>P</samp> elements. The rendering is user
716
 
agent dependent, but text is generally wrapped to fit the space
717
 
available.
718
 
 
719
 
<p>Example:
720
 
 
721
 
<pre>    &lt;P&gt;This is the first paragraph.
722
 
    &lt;P&gt;This is the second paragraph.</pre>
723
 
 
724
 
<p>Paragraphs are usually rendered flush left with a ragged right
725
 
margin. The <samp>ALIGN</samp> attribute can be used to explicitly
726
 
specify the horizontal alignment:
727
 
 
728
 
<dl>
729
 
<dt><samp>align=left</samp><dd>The paragraph is rendered flush left.
730
 
<dt><samp>align=center</samp><dd>The paragraph is centered.
731
 
<dt><samp>align=right</samp><dd>The paragraph is rendered flush right.
732
 
</dl>
733
 
 
734
 
<p>For example:
735
 
 
736
 
<PRE>&lt;p align=center&gt;This is a centered paragraph.
737
 
&lt;p align=right&gt;and this is a flush right paragraph.</PRE>
738
 
 
739
 
<p>The default is left alignment, but this can be overridden by an
740
 
enclosing <a href="red.gif.html#div"><samp>DIV</samp></a> or
741
 
<a href="red.gif.html#center"><samp>CENTER</samp></a> element.
742
 
 
743
 
<h3><a name=lists>Lists</a></h3>
744
 
 
745
 
<p>List items can contain block and text level items, including
746
 
nested lists, although headings and address elements are excluded.
747
 
This limitation is defined via the %flow entity.
748
 
 
749
 
<h4><a name=ul>Unordered Lists</a></h4>
750
 
 
751
 
<pre>
752
 
    &lt;!ELEMENT UL - -  (LI)+&gt;
753
 
    &lt;!ENTITY % ULStyle "disc|square|circle"&gt;
754
 
 
755
 
    &lt;!ATTLIST UL -- unordered lists --
756
 
        type    (%ULStyle)   #IMPLIED   -- bullet style --
757
 
        compact (compact)    #IMPLIED   -- reduced interitem spacing --
758
 
        &gt;
759
 
 
760
 
    &lt;!ELEMENT LI - O %flow -- list item --&gt;
761
 
    &lt;!ATTLIST LI
762
 
        type   (%LIStyle)    #IMPLIED   -- list item style --
763
 
        &gt;
764
 
</pre>
765
 
 
766
 
<p>Unordered lists take the form:
767
 
 
768
 
<pre>    &lt;UL&gt;
769
 
      &lt;LI&gt; <i>... first list item</i>
770
 
      &lt;LI&gt; <i>... second list item</i>
771
 
      ...
772
 
    &lt;/UL&gt;</pre>
773
 
 
774
 
<P>The <samp>UL</samp> element is used for unordered lists. Both start
775
 
and end tags are always needed. The <samp>LI</samp> element is used for
776
 
individual list items. The end tag for <samp>LI</samp> elements can
777
 
always be omitted. Note that <samp>LI</samp> elements can contain nested
778
 
lists. The <samp>COMPACT</samp> attribute can be used as a hint to the
779
 
user agent to render lists in a more compact style.
780
 
  
781
 
<p>The <samp>TYPE</samp> attribute can be used to set the bullet style
782
 
on <samp>UL</samp> and <samp>LI</samp> elements. The permitted values
783
 
are "disc", "square" or "circle". The default generally depends on the
784
 
level of nesting for lists.
785
 
 
786
 
<ul>
787
 
<li type=disc>with <samp>&lt;li type=disc&gt;</samp>
788
 
<li type=square>with <samp>&lt;li type=square&gt;</samp>
789
 
<li type=circle>with <samp>&lt;li type=circle&gt;</samp>
790
 
</ul>
791
 
 
792
 
<p><i>This list was chosen to cater for the original bullet shapes used by
793
 
Mosaic in 1993.</i>
794
 
 
795
 
<h4><a name=ol>Ordered (i.e. numbered) Lists</a></h4>
796
 
 
797
 
<pre>
798
 
    &lt;!ELEMENT OL - -  (LI)+&gt;
799
 
    &lt;!ATTLIST OL -- ordered lists --
800
 
        type      CDATA      #IMPLIED   -- numbering style --
801
 
        start     NUMBER     #IMPLIED   -- starting sequence number --
802
 
        compact  (compact)   #IMPLIED   -- reduced interitem spacing --
803
 
        &gt;
804
 
 
805
 
    &lt;!ELEMENT LI - O %flow -- list item --&gt;
806
 
    &lt;!ATTLIST LI
807
 
        type      CDATA      #IMPLIED   -- list item style --
808
 
        value     NUMBER     #IMPLIED   -- set sequence number --
809
 
        &gt;
810
 
</pre>
811
 
 
812
 
<p>Ordered (i.e. numbered) lists take the form:</p>
813
 
 
814
 
<pre>    &lt;OL&gt;
815
 
      &lt;LI&gt; <i>... first list item</i>
816
 
      &lt;LI&gt; <i>... second list item</i>
817
 
      ...
818
 
    &lt;/OL&gt;</pre>
819
 
  
820
 
<p>The <samp>OL</samp> <samp>START</samp> attribute can be used to
821
 
initialize the sequence number (by default it is initialized to 1).
822
 
You can set it later on with the <samp>VALUE</samp> attribute on
823
 
<samp>LI</samp> elements. Both of these attributes expect integer
824
 
values. You can't indicate that numbering should be continued from a
825
 
previous list, or to skip missing values without giving an explicit
826
 
number.
827
 
 
828
 
<p>The <samp>COMPACT</samp> attribute can be used as a hint to the user
829
 
agent to render lists in a more compact style. The <samp>OL</samp>
830
 
<samp>TYPE</samp> attribute allows you to set the numbering style for
831
 
list items:</p>
832
 
 
833
 
<table border=1 width="80%" align=center>
834
 
<tr><th>Type <th colspan=2>Numbering style<br></tr>
835
 
<tr><td align=center>1 <td align=center>Arabic numbers<td align=center>1, 2, 3, ...<br></tr>
836
 
<tr><td align=center>a <td align=center>lower alpha<td align=center>a, b, c, ...<br></tr>
837
 
<tr><td align=center>A <td align=center>upper alpha<td align=center>A, B, C, ...<br></tr>
838
 
<tr><td align=center>i <td align=center>lower roman<td align=center>i, ii, iii, ...<br></tr>
839
 
<tr><td align=center>I <td align=center>upper roman<td align=center>I, II, III, ...<br></tr>
840
 
</table>
841
 
  
842
 
<h4><a name=dl>Definition Lists</a></h4>
843
 
 
844
 
<pre>
845
 
&lt;!-- definition lists - DT for term, DD for its definition --&gt;
846
 
 
847
 
&lt;!ELEMENT DL    - -  (DT|DD)+&gt;
848
 
&lt;!ATTLIST DL
849
 
        compact (compact) #IMPLIED -- more compact style --
850
 
        &gt;
851
 
 
852
 
&lt;!ELEMENT DT - O  (%text)*&gt;
853
 
&lt;!ELEMENT DD - O  %flow;&gt;
854
 
</pre>
855
 
 
856
 
<p>Definition lists take the form:
857
 
 
858
 
<pre>  &lt;DL&gt;
859
 
    &lt;DT&gt; <i>term name</i>
860
 
    &lt;DD&gt; <i>term definition</i>
861
 
    ...
862
 
  &lt;/DL&gt;</pre>
863
 
 
864
 
<p><samp>DT</samp> elements can only act as containers for text level
865
 
elements, while <samp>DD</samp> elements can hold block level elements
866
 
as well, excluding headings and address elements.
867
 
 
868
 
<p>For example:
869
 
 
870
 
<PRE>&lt;DL&gt;
871
 
&lt;DT&gt;Term 1&lt;dd&gt;This is the definition of the first term.
872
 
&lt;DT&gt;Term 2&lt;dd&gt;This is the definition of the second term.
873
 
&lt;/DL&gt;</PRE>
874
 
 
875
 
<P>which could be rendered as:
876
 
 
877
 
<dl>
878
 
<dt>Term 1<dd>This is the definition of the first term.
879
 
<dt>Term 2<dd>This is the definition of the second term.
880
 
</dl>
881
 
 
882
 
<p>The <samp>COMPACT</samp> attribute can be used with the
883
 
<samp>DL</samp> element as a hint to the user agent to render
884
 
lists in a more compact style.
885
 
 
886
 
<h4><a name=dir>DIR</a> and <a name=menu>MENU</a></h4>
887
 
 
888
 
<pre>&lt;!ELEMENT (DIR|MENU) - -  (LI)+ -(%block)&gt;
889
 
&lt;!ATTLIST (DIR|MENU)
890
 
        compact (compact) #IMPLIED
891
 
        &gt;</pre>
892
 
 
893
 
<p>These elements have been part of HTML from the early days. They are
894
 
intended for unordered lists similar to <samp>UL</samp> elements. User
895
 
agents are recommended to render <samp>DIR</samp> elements as
896
 
multicolumn directory lists, and <samp>MENU</samp> elements as single
897
 
column menu lists. In practice, Mosaic and most other user agents
898
 
have ignored this advice and instead render <samp>DIR</samp> and
899
 
<samp>MENU</samp> in an identical way to <samp>UL</samp> elements.
900
 
 
901
 
<h3><a name=pre>Preformatted Text</a></h3>
902
 
 
903
 
<pre>&lt;!ELEMENT PRE - - (%text)* -(%pre.exclusion)&gt;
904
 
&lt;!ATTLIST PRE
905
 
        width NUMBER #implied
906
 
        &gt;</pre>
907
 
 
908
 
<p>The <samp>PRE</samp> element can be used to include preformatted
909
 
text. User agents render this in a fixed pitch font, preserving spacing
910
 
associated with white space characters such as space and newline
911
 
characters. Automatic word-wrap should be disabled within
912
 
<samp>PRE</samp> elements.
913
 
 
914
 
<p>Note that the SGML standard requires that the parser
915
 
remove a newline immediately following the start tag
916
 
or immediately preceding the end tag.
917
 
 
918
 
<p><samp>PRE</samp> has the same content model as paragraphs,
919
 
excluding images and elements that produce changes in font size,
920
 
e.g. <samp>IMG</samp>, <samp>BIG</samp>, <samp>SMALL</samp>,
921
 
<samp>SUB</samp>, <samp>SUP</samp> and <samp>FONT</samp>.
922
 
 
923
 
<p>A few user agents support the <samp>WIDTH</samp> attribute. It
924
 
provides a hint to the user agent of the required width in characters.
925
 
The user agent can use this to select an appropriate font size or to
926
 
indent the content appropriately.
927
 
 
928
 
<p>Here is an example of a <samp>PRE</samp> element; a verse from
929
 
Shelley (To a Skylark):
930
 
 
931
 
<pre>&lt;PRE&gt;
932
 
       Higher still and higher
933
 
         From the earth thou springest
934
 
       Like a cloud of fire;
935
 
         The blue deep thou wingest,
936
 
And singing still dost soar, and soaring ever singest.
937
 
&lt;/PRE&gt;</PRE>
938
 
 
939
 
which is rendered as:
940
 
 
941
 
<pre>       Higher still and higher
942
 
         From the earth thou springest
943
 
       Like a cloud of fire;
944
 
         The blue deep thou wingest,
945
 
And singing still dost soar, and soaring ever singest.</PRE>
946
 
 
947
 
<p>The horizontal tab character (encoded in Unicode, US ASCII and
948
 
ISO 8859-1 as decimal 9) should be interpreted as the smallest
949
 
non-zero number of spaces which will leave the number of characters
950
 
so far on the line as a multiple of 8. Its use is strongly discouraged
951
 
since it is common practice when editing to set the tab-spacing to other
952
 
values, leading to misaligned documents.
953
 
 
954
 
<h4><a name=xmp>XMP</a>, <a name=listing>LISTING</a> and
955
 
<a name=plaintext>PLAINTEXT</a></h4>
956
 
 
957
 
<pre>&lt;![ %HTML.Deprecated [
958
 
 
959
 
&lt;!ENTITY % literal "CDATA"
960
 
        -- historical, non-conforming parsing mode where
961
 
           the only markup signal is the end tag
962
 
           in full
963
 
        --&gt;
964
 
 
965
 
&lt;!ELEMENT (XMP|LISTING) - -  %literal&gt;
966
 
&lt;!ELEMENT PLAINTEXT - O %literal&gt;
967
 
 
968
 
]]&gt;</pre>
969
 
 
970
 
<p>These are obsolete tags for preformatted text that predate the
971
 
introduction of <a href="red.gif.html#pre">PRE</a>. User agents may support these
972
 
for backwards compatibility. Authors should avoid using them in new
973
 
documents!
974
 
 
975
 
<h3><a name=div>DIV</a> and <a name=center>CENTER</a></h3>
976
 
 
977
 
<pre>&lt;!ELEMENT DIV - - %body.content&gt;
978
 
&lt;!ATTLIST DIV
979
 
        align   (left|center|right) #IMPLIED -- alignment of following text --
980
 
        &gt;
981
 
 
982
 
&lt;!-- CENTER is a shorthand for DIV with ALIGN=CENTER --&gt;
983
 
&lt;!ELEMENT center - - %body.content&gt;</pre>
984
 
 
985
 
<p><samp>DIV</samp> elements can be used to structure HTML documents as
986
 
a hierarchy of divisions. The <samp>ALIGN</samp> attribute can be used
987
 
to set the default horizontal alignment for elements within the content
988
 
of the <samp>DIV</samp> element. Its value is restricted to
989
 
<samp>LEFT</samp>, <samp>CENTER</samp> or <samp>RIGHT</samp>, and is
990
 
defined in the same way as for the paragraph element
991
 
<samp>&lt;P&gt;</samp>.
992
 
 
993
 
<p>Note that because <samp>DIV</samp> is a block-like element it will
994
 
terminate an open <samp>P</samp> element. Other than this, user agents
995
 
are <b>not</b> expected to render paragraph breaks before and after
996
 
<samp>DIV</samp> elements. <samp>CENTER</samp> is directly equivalent
997
 
to <samp>DIV</samp> with <samp>ALIGN=CENTER</samp>. Both
998
 
<samp>DIV</samp> and <samp>CENTER</samp> require start and end tags.
999
 
 
1000
 
<p><i><samp>CENTER</samp> was introduced by Netscape before they added
1001
 
support for the HTML 3.0 <samp>DIV</samp> element. It is retained in
1002
 
HTML 3.2 on account of its widespread deployment.</i>
1003
 
 
1004
 
<h3><b><a name=bq>BLOCKQUOTE</a></b></h3>
1005
 
 
1006
 
<pre>&lt;!ELEMENT BLOCKQUOTE - - %body.content&gt;</pre>
1007
 
 
1008
 
<p>This is used to enclose block quotations from other works.
1009
 
Both the start and end tags are required. It is often rendered
1010
 
indented, e.g.
1011
 
 
1012
 
<blockquote>
1013
 
They went in single file, running like hounds on a strong scent,
1014
 
and an eager light was in their eyes. Nearly due west the broad
1015
 
swath of the marching Orcs tramped its ugly slot; the sweet grass
1016
 
of Rohan had been bruised and blackened as they passed.
1017
 
</blockquote>
1018
 
 
1019
 
<p align=right><em>from "The Two Towers" by J.R.R. Tolkien.</em>
1020
 
 
1021
 
<h3><b><a name=form>FORM</a></b></h3>
1022
 
 
1023
 
<pre>
1024
 
&lt;!ENTITY % HTTP-Method "GET | POST"
1025
 
        -- as per HTTP specification
1026
 
        --&gt;
1027
 
 
1028
 
&lt;!ELEMENT FORM - - %body.content -(FORM)&gt;
1029
 
&lt;!ATTLIST FORM
1030
 
        action %URL #IMPLIED  -- server-side form handler --
1031
 
        method (%HTTP-Method) GET -- see HTTP specification --
1032
 
        enctype %Content-Type; "application/x-www-form-urlencoded"
1033
 
        &gt;</pre>
1034
 
 
1035
 
<p>This is used to define an HTML form, and you can have more than one form
1036
 
in the same document. Both the start and end tags are required. For very
1037
 
simple forms, you can also use the <a href="red.gif.html#isindex"><samp>ISINDEX</samp></a>
1038
 
element. Forms can contain a wide range of HTML markup including several
1039
 
kinds of <a href="red.gif.html#fields">form fields</a> such as single and multi-line
1040
 
text fields, radio button groups, checkboxes, and menus. 
1041
 
 
1042
 
<dl>
1043
 
<dt><b>action</b>
1044
 
<dd>This specifies a URL which is either used to post forms via email,
1045
 
e.g. <samp>action="mailto:foo@bar.com"</samp>, or used to invoke a
1046
 
server-side forms handler via HTTP, e.g.
1047
 
<samp>action="http://www.acme.com/cgi-bin/register.pl"</samp>
1048
 
 
1049
 
<dt><b>method</b>
1050
 
<dd>When the action attribute specifies an HTTP server, the method
1051
 
attribute determines which HTTP method will be used to send the form's
1052
 
contents to the server. It can be either <samp>GET</samp> or
1053
 
<samp>POST</samp>, and defaults to <samp>GET</samp>. 
1054
 
 
1055
 
<dt><b>enctype</b>
1056
 
<dd>This determines the mechanism used to encode the form's contents.
1057
 
It defaults to <em>application/x-www-form-urlencoded</em>.
1058
 
</dl>
1059
 
 
1060
 
<p>Further details on handling forms are given in RFC 1867.
1061
 
 
1062
 
<h3><b><a name=hr>HR</a></b> <i>- horizontal rules</i></h3>
1063
 
 
1064
 
<p>Horizontal rules may be used to indicate a change in topic.
1065
 
In a speech based user agent, the rule could be rendered as a pause.
1066
 
 
1067
 
<pre>&lt;!ELEMENT HR    - O EMPTY&gt;
1068
 
&lt;!ATTLIST HR
1069
 
        align (left|right|center) #IMPLIED
1070
 
        noshade (noshade) #IMPLIED
1071
 
        size  %Pixels #IMPLIED
1072
 
        width %Length #IMPLIED
1073
 
        &gt;</pre>
1074
 
 
1075
 
<p><samp>HR</samp> elements are not containers so the end tag is forbidden.
1076
 
The attributes are: <samp>ALIGN</samp>, <samp>NOSHADE</samp>,
1077
 
<samp>SIZE</samp> and <samp>WIDTH</samp>.
1078
 
 
1079
 
<dl>
1080
 
<dt><b>align</b>
1081
 
<dd>This determines whether the rule is placed at the left, center
1082
 
or right of the space between the current left and right margins
1083
 
for <samp>align=left</samp>, <samp>align=center</samp> or
1084
 
<samp>align=right</samp> respectively. By default, the rule is centered.
1085
 
 
1086
 
<dt><b>noshade</b>
1087
 
<dd>This attribute requests the user agent to render the rule in a
1088
 
solid color rather than as the traditional two colour "groove".
1089
 
 
1090
 
<dt><b>size</b>
1091
 
<dd>This can be used to set the height of the rule in pixels.
1092
 
 
1093
 
<dt><b>width</b>
1094
 
<dd>This can be used to set the width of the rule in
1095
 
pixels (e.g. <samp>width=100</samp>) or as the percentage between the
1096
 
current left and right margins (e.g. <samp>width="50%"</samp>). The
1097
 
default is 100%. </dl>
1098
 
 
1099
 
<h3><a name=table>Tables</a></h3>
1100
 
 
1101
 
<p>HTML 3.2 includes a widely deployed subset of the specification
1102
 
given in <a href="red.gif.html#refs">RFC 1942</a> and can be used to
1103
 
markup tabular material or for layout purposes. Note that the latter
1104
 
role typically causes problems when rending to speech or to text
1105
 
only user agents.
1106
 
 
1107
 
<pre>
1108
 
&lt;!-- horizontal placement of table relative to window --&gt;
1109
 
&lt;!ENTITY % Where "(left|center|right)"&gt;
1110
 
 
1111
 
&lt;!-- horizontal alignment attributes for cell contents --&gt;
1112
 
&lt;!ENTITY % cell.halign
1113
 
        "align  (left|center|right) #IMPLIED"
1114
 
        &gt;
1115
 
 
1116
 
&lt;!-- vertical alignment attributes for cell contents --&gt;
1117
 
&lt;!ENTITY % cell.valign
1118
 
        "valign  (top|middle|bottom)  #IMPLIED"
1119
 
        &gt;
1120
 
 
1121
 
&lt;!ELEMENT table - - (caption?, tr+)&gt;
1122
 
&lt;!ELEMENT tr - O (th|td)*&gt;
1123
 
&lt;!ELEMENT (th|td) - O %body.content&gt;
1124
 
 
1125
 
&lt;!ATTLIST table                       -- table element --
1126
 
        align     %Where;   #IMPLIED  -- table position relative to window --
1127
 
        width     %Length   #IMPLIED  -- table width relative to window --
1128
 
        border    %Pixels   #IMPLIED  -- controls frame width around table --
1129
 
        cellspacing %Pixels #IMPLIED  -- spacing between cells --
1130
 
        cellpadding %Pixels #IMPLIED  -- spacing within cells --
1131
 
        &gt;
1132
 
 
1133
 
&lt;!ELEMENT CAPTION - - (%text;)* -- table or figure caption --&gt;
1134
 
&lt;!ATTLIST CAPTION
1135
 
        align (top|bottom) #IMPLIED
1136
 
        &gt;
1137
 
 
1138
 
&lt;!ATTLIST tr                       -- table row --
1139
 
        %cell.halign;              -- horizontal alignment in cells --
1140
 
        %cell.valign;              -- vertical alignment in cells --
1141
 
        &gt;
1142
 
 
1143
 
&lt;!ATTLIST (th|td)                  -- header or data cell --
1144
 
        nowrap (nowrap)  #IMPLIED  -- suppress word wrap --
1145
 
        rowspan NUMBER   1         -- number of rows spanned by cell --
1146
 
        colspan NUMBER   1         -- number of cols spanned by cell --
1147
 
        %cell.halign;              -- horizontal alignment in cells --
1148
 
        %cell.valign;              -- vertical alignment in cells --
1149
 
        width   %Pixels  #IMPLIED  -- suggested width for cell --
1150
 
        height  %Pixels  #IMPLIED  -- suggested height for cell --
1151
 
        &gt;
1152
 
</pre>
1153
 
 
1154
 
<p>Tables take the general form:
1155
 
 
1156
 
<pre>  &lt;TABLE BORDER=3 CELLSPACING=2 CELLPADDING=2 WIDTH="80%"&gt;
1157
 
  &lt;CAPTION&gt;<i> ... table caption ...</i> &lt;/CAPTION&gt;
1158
 
  &lt;TR&gt;&lt;TD&gt; <i>first cell</i> &lt;TD&gt; <i>second cell</i>
1159
 
  &lt;TR&gt; ...
1160
 
  ...
1161
 
  &lt;/TABLE&gt;</pre>
1162
 
  
1163
 
<p>The attributes on <samp>TABLE</samp> are all optional. By default,
1164
 
the table is rendered without a surrounding border. The table is
1165
 
generally sized automatically to fit the contents, but you can also set
1166
 
the table width using the <samp>WIDTH</samp> attribute.
1167
 
<samp>BORDER</samp>, <samp>CELLSPACING</samp> and
1168
 
<samp>CELLPADDING</samp> provide further control over the table's
1169
 
appearence. Captions are rendered at the top or bottom of the table
1170
 
depending on the <samp>ALIGN</samp> attribute.
1171
 
 
1172
 
<p>Each table row is contained in a <samp>TR</samp> element, although
1173
 
the end tag can always be omitted. Table cells are defined by
1174
 
<samp>TD</samp> elements for data and <samp>TH</samp> elements for
1175
 
headers. Like <samp>TR</samp>, these are containers and can be given
1176
 
without trailing end tags. <samp>TH</samp> and <samp>TD</samp> support
1177
 
several attributes: <samp>ALIGN</samp> and <samp>VALIGN</samp> for
1178
 
aligning cell content, <samp>ROWSPAN</samp> and <samp>COLSPAN</samp> for
1179
 
cells which span more than one row or column. A cell can contain a wide
1180
 
variety of other block and text level elements including form fields and
1181
 
other tables.
1182
 
 
1183
 
<p>The <samp>TABLE</samp> element always requires both start and end tags.
1184
 
It supports the following attributes:
1185
 
 
1186
 
<dl>
1187
 
<dt><b>align</b>
1188
 
<dd>This takes one of the case insensitive values: <samp>LEFT</samp>,
1189
 
<samp>CENTER</samp> or <samp>RIGHT</samp>. It specifies the horizontal
1190
 
placement of the table relative to the current left and right margins.
1191
 
It defaults to left alignment, but this can be overridden by an
1192
 
enclosing <a href="red.gif.html#div"><samp>DIV</samp></a> or
1193
 
<a href="red.gif.html#center"><samp>CENTER</samp></a> element.
1194
 
 
1195
 
<dt><b>width</b>
1196
 
<dd>In the absence of this attribute the table width is automatically
1197
 
determined from the table contents. You can use the <samp>WIDTH</samp>
1198
 
attribute to set the table width to a fixed value in pixels (e.g.
1199
 
<samp>WIDTH=212</samp>) or as a percentage of the space between the
1200
 
current left and right margins (e.g. <samp>WIDTH="80%"</samp>).
1201
 
 
1202
 
<dt><b>border</b>
1203
 
<dd>This attribute can be used to specify the width of the outer border
1204
 
around the table to a given number of pixels (e.g.
1205
 
<samp>BORDER=4</samp>). The value can be set to zero to suppress the
1206
 
border altogether. In the absence of this attribute the border should be
1207
 
suppressed. Note that some browsers also accept <samp>&lt;TABLE
1208
 
BORDER&gt;</samp> with the same semantics as <samp>BORDER=1</samp>.
1209
 
 
1210
 
<dt><b>cellspacing</b>
1211
 
<dd>In traditional desktop publishing software, adjacent table cells
1212
 
share a common border. This is not the case in HTML. Each cell is given
1213
 
its own border which is separated from the borders around neighboring
1214
 
cells. This separation can be set in pixels using the
1215
 
<samp>CELLSPACING</samp> attribute, (e.g. <samp>CELLSPACING=10</samp>).
1216
 
The same value also determines the separation between the table border
1217
 
and the borders of the outermost cells.
1218
 
 
1219
 
<dt><b>cellpadding</b>
1220
 
<dd>This sets the padding in pixels between the border around each cell
1221
 
and the cell's contents.
1222
 
</dl>
1223
 
 
1224
 
<p>The <samp>CAPTION</samp> element has one attribute <samp>ALIGN</samp>
1225
 
which can be either <samp>ALIGN=TOP</samp> or <samp>ALIGN=BOTTOM</samp>.
1226
 
This can be used to force the caption to be placed above the top or
1227
 
below the bottom of the table respectively. Most user agents default to
1228
 
placing the caption above the table. <samp>CAPTION</samp> always
1229
 
requires both start and end tags. Captions are limited to plain text and
1230
 
text-level elements as defined by the %text entity. Block level elements
1231
 
are not permitted.
1232
 
 
1233
 
<p>The <samp>TR</samp> or table row element requires a start tag, but
1234
 
the end tag can always be left out. <samp>TR</samp> acts as a container
1235
 
for table cells. It has two attributes:
1236
 
 
1237
 
<dl>
1238
 
<dt><b>align</b>
1239
 
<dd>Sets the default horizontal alignment of cell contents. It takes
1240
 
one of the case insensitive values: <samp>LEFT</samp>, <samp>CENTER</samp>
1241
 
or <samp>RIGHT</samp> and plays the same role as the <samp>ALIGN</samp>
1242
 
attribute on paragraph elements.
1243
 
 
1244
 
<dt><b>valign</b>
1245
 
<dd>This can be used to set the default vertical alignment of cell
1246
 
contents within each cell. It takes one of the case insensitive values:
1247
 
<samp>TOP</samp>, <samp>MIDDLE</samp> or <samp>BOTTOM</samp> to position
1248
 
the cell contents at the top, middle or bottom of the cell respectively.
1249
 
</dl>
1250
 
 
1251
 
<p>There are two elements for defining table cells. <samp>TH</samp> is
1252
 
used for header cells and <samp>TD</samp> for data cells. This
1253
 
distinction allows user agents to render header and data cells in
1254
 
different fonts, and enables speech based browsers to do a better job.
1255
 
The start tags for <samp>TH</samp> and <samp>TD</samp> are always needed
1256
 
but the end tags can be left out. Table cells can have the following
1257
 
attributes:
1258
 
 
1259
 
<dl>
1260
 
<dt><b>nowrap</b>
1261
 
<dd>The presence of this attribute disables automatic word wrap
1262
 
within the contents of this cell (e.g. <samp>&lt;TD NOWRAP&gt;</samp>).
1263
 
This is equivalent to using the <samp>&amp;nbsp;</samp> entity for
1264
 
non-breaking spaces within the content of the cell.
1265
 
 
1266
 
<dt><b>rowspan</b>
1267
 
<dd>This takes a positive integer value specifying the number of
1268
 
rows spanned by this cell. It defaults to one.
1269
 
 
1270
 
<dt><b>colspan</b>
1271
 
<dd>This takes a positive integer value specifying the number of
1272
 
columns spanned by this cell. It defaults to one.
1273
 
 
1274
 
<dt><b>align</b> <dd>Specifies the default horizontal alignment of cell
1275
 
contents, and overrides the <samp>ALIGN</samp> attribute on the table
1276
 
row. It takes the same values: <samp>LEFT</samp>, <samp>CENTER</samp>
1277
 
and <samp>RIGHT</samp>. If you don't specify an <samp>ALIGN</samp>
1278
 
attribute value on the cell, the default is left alignment for
1279
 
<samp>&lt;td&gt;</samp> and center alignment for <samp>&lt;th&gt;</samp>
1280
 
although you can override this with an <samp>ALIGN</samp> attribute on
1281
 
the <samp>TR</samp> element.
1282
 
 
1283
 
<dt><b>valign</b> <dd>Specifies the default vertical alignment of cell
1284
 
contents, overriding the <samp>VALIGN</samp> attribute on the table row.
1285
 
It takes the same values: <samp>TOP</samp>, <samp>MIDDLE</samp> and
1286
 
<samp>BOTTOM</samp>. If you don't specify a VALIGN attribute value on
1287
 
the cell, the default is middle although you can override this with a
1288
 
<samp>VALIGN</samp> attribute on the <samp>TR</samp> element.
1289
 
 
1290
 
<dt><b>width</b>
1291
 
<dd>Specifies the suggested width for a cell content in pixels
1292
 
excluding the cell padding. This value will normally be
1293
 
used except when it conflicts with the width requirements
1294
 
for other cells in the same column.
1295
 
 
1296
 
<dt><b>height</b>
1297
 
<dd>Specifies the suggested height for a cell content in pixels
1298
 
excluding the cell padding. This value will normally be
1299
 
used except when it conflicts with the height requirements
1300
 
for other cells in the same row.
1301
 
</dl>
1302
 
 
1303
 
<p>Tables are commonly rendered in bas-relief, raised up with the outer
1304
 
border as a bevel, and individual cells inset into this raised surface.
1305
 
Borders around individual cells are only drawn if the cell has explicit
1306
 
content. White space doesn't count for this purpose with the exception
1307
 
of &amp;nbsp;.
1308
 
 
1309
 
<p>The algorithms used to automatically size tables should take
1310
 
into account the minimum and maximum width requirements for each
1311
 
cell. This is used to determine the minimum and maximum width
1312
 
requirements for each column and hence for the table itself.
1313
 
 
1314
 
<p>Cells spanning more than one column contribute to the
1315
 
widths of each of the columns spanned. One approach is to evenly
1316
 
apportion the cell's minimum and maximum width between these
1317
 
columns, another is to weight the apportioning according to the
1318
 
contributions from cells that don't span multiple columns.
1319
 
 
1320
 
<p>For some user agents it may be necessary or desirable to break
1321
 
text lines within words. In such cases a visual indication that this
1322
 
has occurred is advised.
1323
 
 
1324
 
<p>The minimum and maximum width of nested tables contribute to the
1325
 
minimum and maximum width of the cell in which they occur. Once the
1326
 
width requirements are known for the top level table, the column widths
1327
 
for that table can be assigned. This allows the widths of nested tables
1328
 
to be assigned and hence in turn the column widths of such tables.
1329
 
If practical, all columns should be assigned at least their minimum
1330
 
widths. It is suggested that any surplus space is then shared out
1331
 
proportional to the difference between the minimum and maximum width
1332
 
requirements of each column.
1333
 
 
1334
 
<p>Note that pixel values for width and height refer to screen pixels, and
1335
 
should be multiplied by an appropriate factor when rendering to very high
1336
 
resolution devices such as laser printers. For instance if a user agent has
1337
 
a display with 75 pixels per inch and is rendering to a laser printer with
1338
 
600 dots per inch, then the pixel values given in HTML attributes should be
1339
 
multiplied by a factor of 8. 
1340
 
 
1341
 
<hr>
1342
 
<h2><a name=textlevel>Text level elements</a></h2>
1343
 
 
1344
 
<p>These don't cause paragraph breaks. Text level elements
1345
 
that define character styles can generally be nested. They can
1346
 
contain other text level elements but not block level elements.
1347
 
 
1348
 
<ul>
1349
 
<li><a href="red.gif.html#font-style">Font style elements</a>
1350
 
<li><a href="red.gif.html#phrase">Phrase elements</a>
1351
 
<li><a href="red.gif.html#fields">Form Fields</a>
1352
 
<li><a href="red.gif.html#anchor">The A (anchor) element</a>
1353
 
<li><a href="red.gif.html#img">IMG - inline images</a>
1354
 
<li><a href="red.gif.html#applet">APPLET <em>(Java Applets)</em></a>
1355
 
<li><a href="red.gif.html#font">FONT elements</a>
1356
 
<li><a href="red.gif.html#basefont">BASEFONT elements</a>
1357
 
<li><a href="red.gif.html#br">BR - line breaks</a>
1358
 
<li><a href="red.gif.html#map">MAP - client-side image maps</a>
1359
 
</ul>
1360
 
 
1361
 
<h3><a name=font-style>Font style elements</a></h3>
1362
 
 
1363
 
<p>These all require start and end tags, e.g.
1364
 
 
1365
 
<pre>  This has some &lt;B&gt;bold text&lt;/B&gt;.</pre>
1366
 
 
1367
 
<p>Text level elements must be properly nested - the following
1368
 
is in error:
1369
 
 
1370
 
<pre>  This has some &lt;B&gt;bold and &lt;I&gt;&lt;/B&gt;italic text&lt;/I&gt;.</pre>
1371
 
 
1372
 
User agents should do their best to respect nested emphasis, e.g.
1373
 
 
1374
 
<pre>  This has some &lt;B&gt;bold and &lt;I&gt;italic text&lt;/I&gt;&lt;/B&gt;.</pre>
1375
 
 
1376
 
<p>Where the available fonts are restricted or for speech output, alternative
1377
 
means should be used for rendering differences in emphasis.
1378
 
 
1379
 
<dl>
1380
 
<dt><b>TT</b> teletype or monospaced text
1381
 
<dt><b>I</b> italic text style
1382
 
<dt><b>B</b> bold text style
1383
 
<dt><b>U</b> underlined text style
1384
 
<dt><b>STRIKE</b> strike-through text style
1385
 
<dt><b>BIG</b> places text in a large font
1386
 
<dt><b>SMALL</b> places text in a small font
1387
 
<dt><b>SUB</b> places text in subscript style
1388
 
<dt><b>SUP</b> places text in superscript style
1389
 
</dl>
1390
 
 
1391
 
<P><i>Note: future revisions to HTML may be phase out STRIKE
1392
 
in favor of the more concise "S" tag from HTML 3.0.</i>
1393
 
 
1394
 
<h3><a name=phrase>Phrase Elements</a></h3>
1395
 
 
1396
 
<p>These all require start and end tags, e.g.
1397
 
 
1398
 
<pre>  This has some &lt;EM&gt;emphasized text&lt;/EM&gt;.</pre>
1399
 
 
1400
 
<dl>
1401
 
<dt><b>EM</b> basic emphasis typically rendered in an italic font
1402
 
<dt><b>STRONG</b> strong emphasis typically rendered in a bold font
1403
 
<dt><b>DFN</b> defining instance of the enclosed term
1404
 
<dt><b>CODE</b> used for extracts from program code
1405
 
<dt><b>SAMP</b> used for sample output from programs, and scripts etc.
1406
 
<dt><b>KBD</b> used for text to be typed by the user
1407
 
<dt><b>VAR</b> used for variables or arguments to commands
1408
 
<dt><b>CITE</b> used for citations or references to other sources
1409
 
</dl>
1410
 
 
1411
 
<h3><a name=fields>Form fields</a></h3>
1412
 
 
1413
 
<p><a href="red.gif.html#input"><samp>INPUT</samp></a>,
1414
 
<a href="red.gif.html#select"><samp>SELECT</samp></a> and
1415
 
<a href="red.gif.html#textarea"><samp>TEXTAREA</samp></a> are only allowed within
1416
 
<samp>FORM</samp> elements. <a href="red.gif.html#input"><samp>INPUT</samp></a> can
1417
 
be used for a variety of form fields including single line text fields,
1418
 
password fields, checkboxes, radio buttons, submit and reset buttons,
1419
 
hidden fields, file upload, and image buttons.
1420
 
<a href="red.gif.html#select"><samp>SELECT</samp></a> elements are used for single or
1421
 
multiple choice menus. <a href="red.gif.html#textarea"><samp>TEXTAREA</samp></a>
1422
 
elements are used to define multi-line text fields. The content of the
1423
 
element is used to initialize the field.
1424
 
 
1425
 
<h3><a name=input>INPUT <em>text fields, radio buttons, check boxes, ...</em></a></h3>
1426
 
 
1427
 
<p><samp>INPUT</samp> elements are not containers and so the end tag is
1428
 
forbidden.
1429
 
 
1430
 
<pre>&lt;!ENTITY % IAlign "(top|middle|bottom|left|right)"&gt;
1431
 
 
1432
 
&lt;!ENTITY % InputType
1433
 
        "(TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT
1434
 
            | RESET | FILE | HIDDEN | IMAGE)"&gt;
1435
 
 
1436
 
&lt;!ELEMENT INPUT - O EMPTY&gt;
1437
 
&lt;!ATTLIST INPUT
1438
 
        type %InputType TEXT     -- what kind of widget is needed --
1439
 
        name  CDATA #IMPLIED     -- required for all but submit and reset --
1440
 
        value CDATA #IMPLIED     -- required for radio and checkboxes --
1441
 
        checked (checked) #IMPLIED -- for radio buttons and check boxes --
1442
 
        size CDATA  #IMPLIED     -- specific to each type of field --
1443
 
        maxlength NUMBER #IMPLIED
1444
 
        src   %URL  #IMPLIED     -- for fields with background images --
1445
 
        align %IAlign #IMPLIED   -- vertical or horizontal alignment --
1446
 
        &gt;</pre>
1447
 
 
1448
 
<dl>
1449
 
<dt><b>type</b>
1450
 
<dd>Used to set the type of input field:<p></p>
1451
 
 
1452
 
<dl>
1453
 
<dt><samp>type=text</samp> <em>(the default)</em>
1454
 
<dd>A single line text field whose visible size can be set using the <a
1455
 
href="red.gif.html#isize"><samp>size</samp></a> attribute, e.g. <samp>size=40</samp>
1456
 
for a 40 character wide field. Users should be able to type more than
1457
 
this limit though with the text scrolling through the field to keep the
1458
 
input cursor in view. You can enforce an upper limit on the number of
1459
 
characters that can be entered with the <a
1460
 
href="red.gif.html#maxlen"><samp>maxlength</samp></a> attribute. The <a
1461
 
href="red.gif.html#name"><samp>name</samp></a> attribute is used to name the field,
1462
 
while the <a href="red.gif.html#value"><samp>value</samp></a> attribute can be used
1463
 
to initialize the text string shown in the field when the document is
1464
 
first loaded.
1465
 
 
1466
 
 
1467
 
<pre>    &lt;input type=text size=40 name=user value="your name"&gt;</pre>
1468
 
 
1469
 
<dt><samp>type=password</samp>
1470
 
<dd>This is like type=text, but echoes characters using a character
1471
 
like * to hide the text from prying eyes when entering passwords.
1472
 
You can use <a href="red.gif.html#isize"><samp>size</samp></a> and
1473
 
<a href="red.gif.html#maxlen"><samp>maxlength</samp></a> attributes to control
1474
 
the visible and maximum length exactly as per
1475
 
regular text fields.
1476
 
 
1477
 
<pre>    &lt;input type=password size=12 name=pw&gt;</pre>
1478
 
 
1479
 
 
1480
 
<dt><samp>type=checkbox</samp>
1481
 
<dd>Used for simple Boolean attributes, or for attributes that can take
1482
 
multiple values at the same time. The latter is represented by several
1483
 
checkbox fields with the same <a href="red.gif.html#name"><samp>name</samp></a> and
1484
 
a different <a href="red.gif.html#value"><samp>value</samp></a> attribute. Each checked
1485
 
checkbox generates a separate name/value pair in the submitted data, even
1486
 
if this results in duplicate names. Use the
1487
 
<a href="red.gif.html#checked"><samp>checked</samp></a> attribute to initialize
1488
 
the checkbox to its checked state.
1489
 
 
1490
 
<pre>    &lt;input type=checkbox checked name=uscitizen value=yes&gt;</pre>
1491
 
 
1492
 
<dt><samp>type=radio</samp>
1493
 
<dd>Used for attributes which can take a single value from a set of
1494
 
alternatives. Each radio button field in the group should be given the
1495
 
same <a href="red.gif.html#name"><samp>name</samp></a>. Radio buttons require an explicit
1496
 
<a href="red.gif.html#value"><samp>value</samp></a> attribute. Only the checked radio
1497
 
button in the group generates a name/value pair in the submitted data. One
1498
 
radio button in each group should be initially checked using the
1499
 
<a href="red.gif.html#checked"><samp>checked</samp></a> attribute.
1500
 
 
1501
 
<pre>
1502
 
    &lt;input type=radio name=age value="0-12"&gt;
1503
 
    &lt;input type=radio name=age value="13-17"&gt;
1504
 
    &lt;input type=radio name=age value="18-25"&gt;
1505
 
    &lt;input type=radio name=age value="26-35" checked&gt;
1506
 
    &lt;input type=radio name=age value="36-"&gt;
1507
 
</pre>
1508
 
 
1509
 
<dt><samp>type=submit</samp>
1510
 
<dd>This defines a button that users can click to submit the form's
1511
 
contents to the server. The button's label is set from the
1512
 
<a href="red.gif.html#value"><samp>value</samp></a> attribute. If the
1513
 
<a href="red.gif.html#name"><samp>name</samp></a>
1514
 
attribute is given then the submit button's name/value pair will be
1515
 
included in the submitted data. You can include several submit buttons
1516
 
in the form. See <samp>type=image</samp> for graphical submit buttons.
1517
 
 
1518
 
<pre>    &lt;input type=submit value="Party on ..."&gt;</pre>
1519
 
 
1520
 
<dt><samp>type=image</samp>
1521
 
<dd>This is used for graphical submit buttons rendered by an image
1522
 
rather than a text string. The URL for the image is specified with the
1523
 
<a href="red.gif.html#isrc"><samp>src</samp></a> attribute. The image alignment can
1524
 
be specified with the <a href="red.gif.html#ialign"><samp>align</samp></a>
1525
 
attribute. In this respect, graphical submit buttons are treated
1526
 
identically to <a href="red.gif.html#img"><samp>IMG</samp></a> elements, so you can
1527
 
set align to left, right, top, middle or bottom. The x and y values of
1528
 
the location clicked are passed to the server: In the submitted data,
1529
 
image fields are included as two name/value pairs. The names are derived
1530
 
by taking the name of the field and appending ".x" for the x value, and
1531
 
".y" for the y value.
1532
 
 
1533
 
<pre>&lt;p&gt;Now choose a point on the map:
1534
 
 
1535
 
    &lt;input type=image name=point src="map.gif"&gt;</pre>
1536
 
 
1537
 
<p><em><b>Note</b>: image fields typically cause problems for text-only and
1538
 
speech-based user agents!</em></p>
1539
 
 
1540
 
<dt><samp>type=reset</samp>
1541
 
<dd>This defines a button that users can click to reset form fields
1542
 
to their initial state when the document was first loaded. You can
1543
 
set the label by providing a <a href="red.gif.html#value"><samp>value</samp></a>
1544
 
attribute. Reset buttons are never sent as part of the form's contents.
1545
 
 
1546
 
<pre>    &lt;input type=reset value="Start over ..."&gt;</pre>
1547
 
 
1548
 
<dt><samp>type=file</samp>
1549
 
<dd>This provides a means for users to attach a file to the form's
1550
 
contents. It is generally rendered by text field and an associated
1551
 
button which when clicked invokes a file browser to select a file
1552
 
name. The file name can also be entered directly in the text field.
1553
 
Just like type=text you can use the <a href="red.gif.html#isize"><samp>size</samp></a>
1554
 
attribute to set the visible width of this field in average character
1555
 
widths. You can set an upper limit to the length of file names using the
1556
 
<a href="red.gif.html#maxlen"><samp>maxlength</samp></a> attribute. Some user agents
1557
 
support the ability to restrict the kinds of files to those
1558
 
matching a comma separated list of MIME content types given with
1559
 
the <samp>ACCEPT</samp> attribute e.g. <samp>accept="image/*"</samp>
1560
 
restricts files to images. Further information can be found in
1561
 
<a href="red.gif.html#rfc1867">RFC 1867</a>.
1562
 
 
1563
 
<pre>    &lt;input type=file name=photo size=20 accept="image/*"&gt;</pre>
1564
 
 
1565
 
<dt><samp>type=hidden</samp>
1566
 
<dd>These fields should not be rendered and provide a means for servers
1567
 
to store state information with a form. This will be passed back to the
1568
 
server when the form is submitted, using the name/value pair defined by
1569
 
the corresponding attributes. This is a work around for the statelessness
1570
 
of HTTP. Another approach is to use HTTP "<a href="red.gif.html#refs">Cookies</a>".
1571
 
 
1572
 
<pre>    &lt;input type=hidden name=customerid value="c2415-345-8563"&gt;</pre> 
1573
 
</dl>
1574
 
 
1575
 
<dt><a name=name><b>name</b></a>
1576
 
<dd>Used to define the property name that will be used to identify this
1577
 
field's content when it is submitted to the server.
1578
 
 
1579
 
<dt><a name=value><b>value</b></a>
1580
 
<dd>Used to initialize the field, or to provide a textual label for
1581
 
submit and reset buttons.
1582
 
 
1583
 
<dt><a name=checked><b>checked</b></a>
1584
 
<dd>The presence of this attribute is used to initialize checkboxes and
1585
 
radio buttons to their checked state.
1586
 
 
1587
 
<dt><a name=isize><b>size</b></a>
1588
 
<dd>Used to set the visible size of text fields to a given number of
1589
 
average character widths, e.g. <samp>size=20</samp>
1590
 
 
1591
 
<dt><a name=maxlen><b>maxlength</b></a>
1592
 
<dd>Sets the maximum number of characters permitted in a text field.
1593
 
 
1594
 
<dt><a name=isrc><b>src</b></a>
1595
 
<dd>Specifies a URL for the image to use with a graphical submit button.
1596
 
 
1597
 
<dt><a name=ialign><b>align</b></a>
1598
 
<dd>Used to specify image alignment for graphical submit buttons.
1599
 
It is defined just like the <a href="red.gif.html#img"><samp>IMG</samp></a> align
1600
 
attribute and takes one of the values: <samp>top</samp>, <samp>middle</samp>,
1601
 
<samp>bottom</samp>, <samp>left</samp> or <samp>right</samp>, defaulting
1602
 
to <samp>bottom</samp>.
1603
 
</dl>
1604
 
 
1605
 
<h3><a name=select>SELECT <em>menus</em></a></h3>
1606
 
 
1607
 
<pre>
1608
 
&lt;!ELEMENT SELECT - - (OPTION+)&gt;
1609
 
&lt;!ATTLIST SELECT
1610
 
        name CDATA #REQUIRED
1611
 
        size NUMBER #IMPLIED
1612
 
        multiple (multiple) #IMPLIED
1613
 
        &gt;
1614
 
 
1615
 
&lt;!ELEMENT OPTION - O (#PCDATA)*&gt;
1616
 
&lt;!ATTLIST OPTION
1617
 
        selected (selected) #IMPLIED
1618
 
        value  CDATA  #IMPLIED -- defaults to element content --
1619
 
        &gt;
1620
 
</pre>
1621
 
 
1622
 
<p><samp>SELECT</samp> is used to define select one from many or many
1623
 
from many menus. <samp>SELECT</samp> elements require start and end tags
1624
 
and contain one or more <samp>OPTION</samp> elements that define menu
1625
 
items. One from many menus are generally rendered as drop-down menus
1626
 
while many from many menus are generally shown as list boxes.
1627
 
 
1628
 
<p>Example:
1629
 
 
1630
 
<PRE>    &lt;SELECT NAME="flavor"&gt;
1631
 
    &lt;OPTION VALUE=a&gt;Vanilla
1632
 
    &lt;OPTION VALUE=b&gt;Strawberry
1633
 
    &lt;OPTION VALUE=c&gt;Rum and Raisin
1634
 
    &lt;OPTION VALUE=d&gt;Peach and Orange
1635
 
    &lt;/SELECT&gt;
1636
 
</PRE>
1637
 
 
1638
 
<p><samp>SELECT</samp> attributes:
1639
 
 
1640
 
<dl>
1641
 
<dt><b>name</b>
1642
 
<dd>This specifies a property name that is used to identify the menu
1643
 
choice when the form is submitted to the server. Each selected option
1644
 
results in a property name/value pair being included as part of the
1645
 
form's contents.
1646
 
 
1647
 
<dt><b>size</b>
1648
 
<dd>This sets the number of visible choices for many from many menus.
1649
 
 
1650
 
<dt><b>multiple</b>
1651
 
<dd>The presence of this attribute signifies that the users can make
1652
 
multiple selections. By default only one selection is allowed.
1653
 
</dl>
1654
 
 
1655
 
<p><samp>OPTION</samp> attributes:
1656
 
 
1657
 
<dl>
1658
 
<dt><b>selected</b>
1659
 
<dd>When this attribute is present, the option is selected when the
1660
 
document is initially loaded. It is an error for more than one option
1661
 
to be so selected for one from many menus.
1662
 
 
1663
 
<dt><b>value</b>
1664
 
<dd>Specifies the property value to be used when submitting the form's
1665
 
content. This is combined with the property name as given by the name
1666
 
attribute of the parent <samp>SELECT</samp> element.
1667
 
</dl>
1668
 
 
1669
 
 
1670
 
 
1671
 
<h3><a name=textarea>TEXTAREA <em>multi-line text fields</em></a></h3>
1672
 
 
1673
 
<pre>
1674
 
&lt;!-- Multi-line text input field. --&gt;
1675
 
 
1676
 
&lt;!ELEMENT TEXTAREA - - (#PCDATA)*&gt;
1677
 
&lt;!ATTLIST TEXTAREA
1678
 
        name CDATA #REQUIRED
1679
 
        rows NUMBER #REQUIRED
1680
 
        cols NUMBER #REQUIRED
1681
 
        &gt;
1682
 
</pre>
1683
 
 
1684
 
<p><samp>TEXTAREA</samp> elements require start and end tags. The
1685
 
content of the element is restricted to text and character entities. It
1686
 
is used to initialize the text that is shown when the document is first
1687
 
loaded.
1688
 
 
1689
 
<p>Example:
1690
 
 
1691
 
<pre>
1692
 
    &lt;TEXTAREA NAME=address ROWS=4 COLS=40&gt
1693
 
    Your address here ...
1694
 
    &lt;/TEXTAREA&gt;
1695
 
</pre>
1696
 
 
1697
 
<P>It is recommended that user agents canonicalize line endings to
1698
 
CR, LF (ASCII decimal 13, 10) when submitting the field's contents.
1699
 
The character set for submitted data should be ISO Latin-1, unless
1700
 
the server has previously indicated that it can support alternative
1701
 
character sets.
1702
 
 
1703
 
<dl>
1704
 
<dt><b>name</b>
1705
 
<dd>This specifies a property name that is used to identify the textarea
1706
 
field when the form is submitted to the server.
1707
 
 
1708
 
<dt><b>rows</b>
1709
 
<dd>Specifies the number of visible text lines. Users should be able
1710
 
to enter more lines that this, so user agents should provide some
1711
 
means to scroll through the contents of the textarea field when the
1712
 
contents extend beyond the visible area.
1713
 
 
1714
 
<dt><b>cols</b>
1715
 
<dd>Specifies the visible width in average character widths. Users should
1716
 
be able to enter longer lines that this, so user agents should provide
1717
 
some means to scroll through the contents of the textarea field when the
1718
 
contents extend beyond the visible area. User agents may wrap visible text
1719
 
lines to keep long lines visible without the need for scrolling.
1720
 
</dl>
1721
 
 
1722
 
 
1723
 
<h3><a name=specials>Special Text level Elements</a></h3>
1724
 
 
1725
 
<p><a href="red.gif.html#anchor">A</a> (Anchor), <a href="red.gif.html#img">IMG</a>,
1726
 
<a href="red.gif.html#applet">APPLET</a>, <a href="red.gif.html#font">FONT</a>,
1727
 
<a href="red.gif.html#basefont">BASEFONT</a>, <a href="red.gif.html#br">BR</a>
1728
 
and <a href="red.gif.html#map">MAP</a>.
1729
 
 
1730
 
<h4><a name=anchor>The A (anchor) element</a></h4>
1731
 
 
1732
 
<pre>
1733
 
&lt;!ELEMENT A - - (%text)* -(A)&gt;
1734
 
&lt;!ATTLIST A
1735
 
        name    CDATA   #IMPLIED    -- named link end --
1736
 
        href    %URL    #IMPLIED    -- URL for linked resource --
1737
 
        rel     CDATA   #IMPLIED    -- forward link types --
1738
 
        rev     CDATA   #IMPLIED    -- reverse link types --
1739
 
        title   CDATA   #IMPLIED    -- advisory title string --
1740
 
        &gt;
1741
 
</pre>
1742
 
 
1743
 
<p>Anchors can't be nested and always require start and end tags.
1744
 
They are used to define hypertext links and also to define
1745
 
named locations for use as targets for hypertext links, e.g.
1746
 
 
1747
 
<pre>   The way to &lt;a href="hands-on.html"&gt;happiness&lt;/a&gt;.</pre>
1748
 
 
1749
 
<p>and also to define named locations for use as targets for hypertext
1750
 
links, e.g.
1751
 
 
1752
 
<pre>   &lt;h2&gt;&lt;a name=mit&gt;545 Tech Square - Hacker's Paradise&lt;/a&gt;&lt;/h2&gt;</pre>
1753
 
 
1754
 
<dl>
1755
 
<dt><b>name</b>
1756
 
<dd>This should be a string defining unique name for the scope of the
1757
 
current HTML document. <samp>NAME</samp> is used to associate a name
1758
 
with this part of a document for use with URLs that target a named
1759
 
section of a document.
1760
 
 
1761
 
<dt><b>href</b>
1762
 
<dd>Specifies a URL acting as a network address for the linked resource.
1763
 
This could be another HTML document, a PDF file or an image etc.
1764
 
 
1765
 
<dt><b>rel</b>
1766
 
<dd>The forward relationship also known as the "link type". It can be
1767
 
used to determine to how to deal with the linked resource when printing
1768
 
out a collection of linked resources.
1769
 
 
1770
 
<dt><b>rev</b>
1771
 
<dd>This defines a reverse relationship. A link from document A to
1772
 
document B with <samp>REV=relation</samp> expresses the same
1773
 
relationship as a link from B to A with <samp>REL=relation</samp>.
1774
 
<samp>REV=made</samp> is sometimes used to identify the document author,
1775
 
either the author's email address with a mailto URL, or a link to the
1776
 
author's home page.
1777
 
 
1778
 
<dt><b>title</b>
1779
 
<dd>An advisory title for the linked resource.
1780
 
</dl>
1781
 
 
1782
 
<h4><a name=img><B>IMG</B> <i> - inline images</i></a></h4>
1783
 
 
1784
 
 
1785
 
<pre>&lt;!ENTITY % IAlign "(top|middle|bottom|left|right)"&gt;
1786
 
 
1787
 
&lt;!ELEMENT IMG    - O EMPTY --  Embedded image --&gt;
1788
 
&lt;!ATTLIST IMG
1789
 
        src     %URL     #REQUIRED  -- URL of image to embed --
1790
 
        alt     CDATA    #IMPLIED   -- for display in place of image --
1791
 
        align   %IAlign  #IMPLIED   -- vertical or horizontal alignment --
1792
 
        height  %Pixels  #IMPLIED   -- suggested height in pixels --
1793
 
        width   %Pixels  #IMPLIED   -- suggested width in pixels --
1794
 
        border  %Pixels  #IMPLIED   -- suggested link border width --
1795
 
        hspace  %Pixels  #IMPLIED   -- suggested horizontal gutter --
1796
 
        vspace  %Pixels  #IMPLIED   -- suggested vertical gutter --
1797
 
        usemap  %URL     #IMPLIED   -- use client-side image map --
1798
 
        ismap   (ismap)  #IMPLIED   -- use server image map --
1799
 
        &gt;</pre>
1800
 
 
1801
 
<p>Used to insert images. <samp>IMG</samp> is an empty element and so
1802
 
the end tag is forbidden. Images can be positioned vertically relative
1803
 
to the current textline or floated to the left or right. See
1804
 
<samp>BR</samp> with the <samp>CLEAR</samp> attribute for control
1805
 
over textflow.
1806
 
 
1807
 
<pre><i>e.g.</i>  &lt;IMG SRC="canyon.gif" ALT="Grand Canyon"&gt;</pre>
1808
 
 
1809
 
<p><samp>IMG</samp> elements support the following attributes:
1810
 
 
1811
 
<dl>
1812
 
<dt><b>src</b>
1813
 
<dd>This attribute is required for every <samp>IMG</samp> element. It
1814
 
specifies a URL for the image resource, for instance a GIF, JPEG or PNG
1815
 
image file.
1816
 
 
1817
 
<dt><b>alt</b>
1818
 
<dd>This is used to provide a text description of the image and
1819
 
is vital for interoperability with speech-based and text only
1820
 
user agents.
1821
 
 
1822
 
<dt><b>align</b>
1823
 
<dd>This specifies how the image is positioned relative to the current
1824
 
textline in which it occurs:
1825
 
<p><!-- fix for Netscape spacing bug with DD --></p>
1826
 
 
1827
 
<dl>
1828
 
<dt><samp>align=top</samp>
1829
 
<dd>positions the top of the image
1830
 
with the top of the current text line. User agents vary in how they
1831
 
interpret this. Some only take into account what has occurred on the
1832
 
text line prior to the IMG element and ignore what happens after it.
1833
 
 
1834
 
<dt><samp>align=middle</samp>
1835
 
<dd>aligns the middle of the image with the baseline for the
1836
 
current textline.
1837
 
 
1838
 
<dt><samp>align=bottom</samp>
1839
 
<dd>is the default and aligns the bottom of the image with the baseline.
1840
 
 
1841
 
<dt><samp>align=left</samp>
1842
 
<dd>floats the image to the current left margin, temporarily changing
1843
 
this margin, so that subsequent text is flowed along the image's
1844
 
righthand side. The rendering depends on whether there is any left
1845
 
aligned text or images that appear earlier than the current image in the
1846
 
markup. Such text (but not images) generally forces left aligned images
1847
 
to wrap to a new line, with the subsequent text continuing on the former
1848
 
line.
1849
 
 
1850
 
<dt><samp>align=right</samp>
1851
 
<dd>floats the image to the current right margin, temporarily changing
1852
 
this margin, so that subsequent text is flowed along the image's
1853
 
lefthand side. The rendering depends on whether there is any right
1854
 
aligned text or images that appear earlier than the current image in the
1855
 
markup. Such text (but not images) generally forces right aligned images
1856
 
to wrap to a new line, with the subsequent text continuing on the former
1857
 
line.
1858
 
</dl>
1859
 
 
1860
 
<p>Note that some browsers introduce spurious spacing with multiple left
1861
 
or right aligned images. As a result authors can't depend on this being
1862
 
the same for browsers from different vendors. See
1863
 
<a href="red.gif.html#br"><samp>BR</samp></a> for ways to control text flow.
1864
 
 
1865
 
<dt><b>width</b>
1866
 
<dd>Specifies the intended width of the image in pixels. When given
1867
 
together with the height, this allows user agents to reserve screen
1868
 
space for the image before the image data has arrived over the network.
1869
 
 
1870
 
<dt><b>height</b>
1871
 
<dd>Specifies the intended height of the image in pixels. When given
1872
 
together with the width, this allows user agents to reserve screen space
1873
 
for the image before the image data has arrived over the network.
1874
 
 
1875
 
<dt><b>border</b>
1876
 
<dd>When the <samp>IMG</samp> element appears as part of a hypertext
1877
 
link, the user agent will generally indicate this by drawing a colored
1878
 
border (typically blue) around the image. This attribute can be used to
1879
 
set the width of this border in pixels. Use <samp>border=0</samp> to
1880
 
suppress the border altogether. User agents are recommended to provide
1881
 
additional cues that the image is clickable, e.g. by changing the mouse
1882
 
pointer.
1883
 
 
1884
 
<dt><b>hspace</b>
1885
 
<dd>This can be used to provide white space to the immediate left and
1886
 
right of the image. The <samp>HSPACE</samp> attribute sets the width of
1887
 
this white space in pixels. By default <samp>HSPACE</samp> is a small
1888
 
non-zero number.
1889
 
 
1890
 
<dt><b>vspace</b>
1891
 
<dd>This can be used to provide white space above and below the image
1892
 
The <samp>VSPACE</samp> attribute sets the height of this white space
1893
 
in pixels. By default <samp>VSPACE</samp> is a small non-zero number.
1894
 
 
1895
 
<dt><b>usemap</b>
1896
 
<dd>This can be used to give a URL fragment identifier for a client-side
1897
 
image map defined with the <a href="red.gif.html#map">MAP</a> element.
1898
 
 
1899
 
<dt><b>ismap</b>
1900
 
<dd>When the <samp>IMG</samp> element is part of a hypertext link, and
1901
 
the user clicks on the image, the <samp>ISMAP</samp> attribute causes
1902
 
the location to be passed to the server. This mechanism causes problems
1903
 
for text-only and speech-based user agents. Whenever its possible to
1904
 
do so use the <samp>MAP</samp> element instead.
1905
 
</dl>
1906
 
 
1907
 
<p>Here is an example of how you use <samp>ISMAP</samp>:
1908
 
 
1909
 
<pre>&lt;a href="/cgibin/navbar.map"&gt;&lt;img src=navbar.gif ismap border=0&gt;&lt;/a&gt;</pre>
1910
 
 
1911
 
<p>The location clicked is passed to the server as follows. The user
1912
 
agent derives a new URL from the URL specified by the <samp>HREF</samp>
1913
 
attribute by appending `?' the x coordinate `,' and the y coordinate of
1914
 
the location in pixels. The link is then followed using the new URL. For
1915
 
instance, if the user clicked at at the location x=10, y=27 then the
1916
 
derived URL will be: <i>"<samp>/cgibin/navbar.map?10,27</samp>"</i>. It
1917
 
is generally a good idea to suppress the border and use graphical idioms
1918
 
to indicate that the image is clickable.
1919
 
 
1920
 
<p>Note that pixel values refer to screen pixels, and should be
1921
 
multiplied by an appropriate factor when rendering to very high
1922
 
resolution devices such as laser printers. For instance if a
1923
 
user agent has a display with 75 pixels per inch and is rendering
1924
 
to a laser printer with 600 dots per inch, then the pixel values
1925
 
given in HTML attributes should be multiplied by a factor of 8.
1926
 
 
1927
 
<h4><a name=applet>APPLET <em>(Java Applets)</em></a></h4>
1928
 
 
1929
 
<pre>
1930
 
&lt;!ELEMENT APPLET - - (PARAM | %text)*&gt;
1931
 
&lt;!ATTLIST APPLET
1932
 
        codebase %URL     #IMPLIED   -- code base --
1933
 
        code     CDATA    #REQUIRED  -- class file --
1934
 
        alt      CDATA    #IMPLIED   -- for display in place of applet --
1935
 
        name     CDATA    #IMPLIED   -- applet name --
1936
 
        width    %Pixels  #REQUIRED  -- suggested width in pixels --
1937
 
        height   %Pixels  #REQUIRED  -- suggested height in pixels --
1938
 
        align    %IAlign  #IMPLIED   -- vertical or horizontal alignment --
1939
 
        hspace   %Pixels  #IMPLIED   -- suggested horizontal gutter --
1940
 
        vspace   %Pixels  #IMPLIED   -- suggested vertical gutter --
1941
 
        &gt;
1942
 
 
1943
 
&lt;!ELEMENT PARAM - O EMPTY&gt;
1944
 
&lt;!ATTLIST PARAM
1945
 
    name    NMTOKEN   #REQUIRED  -- The name of the parameter --
1946
 
    value   CDATA     #IMPLIED   -- The value of the parameter --
1947
 
    &gt;
1948
 
</pre>
1949
 
 
1950
 
<p>Requires start and end tags. This element is supported by all Java
1951
 
enabled browsers. It allows you to embed a Java applet into HTML
1952
 
documents. <samp>APPLET</samp> uses associated <a
1953
 
href="red.gif.html#param"><samp>PARAM</samp></a> elements to pass parameters to the
1954
 
applet. Following the <samp>PARAM</samp> elements, the content of
1955
 
<samp>APPLET</samp> elements should be used to provide an alternative to
1956
 
the applet for user agents that don't support Java. It is restricted to
1957
 
text-level markup as defined by the <i><samp>%text</samp></i> entity in
1958
 
the DTD. Java-compatible browsers ignore this extra HTML code. You can
1959
 
use it to show a snapshot of the applet running, with text explaining
1960
 
what the applet does. Other possibilities for this area are a link to a
1961
 
page that is more useful for the Java-ignorant browser, or text that
1962
 
taunts the user for not having a Java-compatible browser.
1963
 
 
1964
 
<p>Here is a simple example of a Java applet:
1965
 
 
1966
 
<pre>
1967
 
    &lt;applet code="Bubbles.class" width=500 height=500&gt;
1968
 
    Java applet that draws animated bubbles.
1969
 
    &lt;/applet&gt;
1970
 
</pre>
1971
 
 
1972
 
<p>Here is another one using a <samp>PARAM</samp> element:
1973
 
 
1974
 
<pre>
1975
 
    &lt;applet code="AudioItem" width=15 height=15&gt;
1976
 
    &lt;param name=snd value="Hello.au|Welcome.au"&gt;
1977
 
    Java applet that plays a welcoming sound.
1978
 
    &lt;/applet&gt;
1979
 
</pre>
1980
 
 
1981
 
<dl>
1982
 
<dt><b>codebase =</b> <em>codebaseURL</em>
1983
 
<dd>This optional attribute specifies the base URL of the applet --
1984
 
    the directory or folder that contains the applet's code.
1985
 
    If this attribute is not specified,
1986
 
    then the document's URL is used.
1987
 
<p>
1988
 
<dt><b>code =</b> <em>appletFile</em>
1989
 
<dd>This required attribute gives the name of the file
1990
 
    that contains the applet's compiled Applet subclass.
1991
 
    This file is relative to the base URL of the applet.
1992
 
    It cannot be absolute. 
1993
 
<p>
1994
 
<dt><b>alt =</b> <em>alternateText</em>
1995
 
<dd>This optional attribute specifies any text
1996
 
    that should be displayed
1997
 
    if the browser understands the APPLET tag
1998
 
    but can't run Java applets.
1999
 
<p>
2000
 
<dt><b>name =</b> <em>appletInstanceName</em>
2001
 
<dd>This optional attribute specifies a name for the applet instance,
2002
 
    which makes it possible for applets on the same page
2003
 
    to find (and communicate with) each other.
2004
 
<p>
2005
 
<dt><b>width =</b> <em>pixels</em>
2006
 
<br>
2007
 
    <b>height =</b> <em>pixels</em>
2008
 
<dd>These required attributes give the initial width and height 
2009
 
    (in pixels) of the applet display area,
2010
 
    not counting any windows or dialogs that the applet brings up. 
2011
 
<p>
2012
 
<dt><b>align =</b> <em>alignment</em>
2013
 
<dd>This attribute specifies the alignment of the applet.
2014
 
    This attribute is defined in exactly the same way
2015
 
    as the <a href="red.gif.html#img"><samp>IMG</samp></a> element.
2016
 
    The permitted values are: <samp>top</samp>, <samp>middle</samp>,
2017
 
    <samp>bottom</samp>, <samp>left</samp> and <samp>right</samp>.
2018
 
    The default is <samp>bottom</samp>.
2019
 
<p>
2020
 
<dt><b>vspace =</b> <em>pixels</em>
2021
 
<br>
2022
 
    <b>hspace =</b> <em>pixels</em>
2023
 
<dd>These optional attributes specify the number of pixels above and
2024
 
    below the applet (<samp>VSPACE</samp>) and on each side of the
2025
 
    applet (<samp>HSPACE</samp>). They're treated the same way as the 
2026
 
    <samp>IMG</samp> element's <samp>VSPACE</samp> and <samp>HSPACE</samp>
2027
 
    attributes.
2028
 
</dl>
2029
 
 
2030
 
<p><a name=param>The <samp>PARAM</samp> element is used to pass named
2031
 
parameters to applet:</a>
2032
 
 
2033
 
 
2034
 
<pre>   <b>&lt;PARAM NAME =</b> <em>appletParameter</em> <b>VALUE =</b> <em>value</em><b>&gt;</b></pre>
2035
 
 
2036
 
<P><samp>PARAM</samp> elements are the only way to specify applet-specific
2037
 
parameters. Applets read user-specified values for parameters with the
2038
 
<code>getParameter()</code> method.
2039
 
 
2040
 
<dl>
2041
 
<dt><b>name =</b> <em>applet parameter name</em>
2042
 
<dt><b>value =</b> <em>parameter value</em>
2043
 
</dl>
2044
 
 
2045
 
<p>SGML character entities such as <em><samp>&amp;eacute;</samp></em>
2046
 
and <em><samp>&amp;#185;</samp></em>
2047
 
are expanded before the parameter value is passed to the applet.
2048
 
To include an &amp; character use <samp>&amp;amp;</samp>.
2049
 
 
2050
 
<p><em>Note: PARAM elements should be placed at the start of the
2051
 
content for the APPLET element. This is not specified as part of the
2052
 
DTD due to technicalities with SGML mixed content models.</em>
2053
 
 
2054
 
<h4><a name=font>FONT</a></h4>
2055
 
 
2056
 
<pre>
2057
 
&lt;!ELEMENT FONT - - (%text)*     -- local change to font --&gt;
2058
 
&lt;!ATTLIST FONT
2059
 
    size    CDATA   #IMPLIED    -- [+]nn e.g. size="+1", size=4 --
2060
 
    color   CDATA   #IMPLIED    -- #RRGGBB in hex, e.g. red: color="#FF0000" --
2061
 
    &gt;</pre>
2062
 
 
2063
 
 
2064
 
<p>Requires start and end tags. This allows you to change the font size
2065
 
and/or color for the enclosed text. The attributes are: <samp>SIZE</samp>
2066
 
and <samp>COLOR</samp>. Font sizes are given in terms of a scalar range
2067
 
defined by the user agent with no direct mapping to point sizes etc.
2068
 
The <samp>FONT</samp> element may be phased out in future revisions
2069
 
to HTML.
2070
 
 
2071
 
<dl>
2072
 
<dt><b>size</b>
2073
 
<dd>This sets the font size for the contents of the font element. You
2074
 
can set size to an integer ranging from 1 to 7 for an absolute font
2075
 
size, or specify a relative font size with a signed integer value, e.g.
2076
 
<samp>size="+1"</samp> or <samp>size="-2"</samp>. This is mapped to an
2077
 
absolute font size by adding the current base font size as set by the
2078
 
<samp>BASEFONT</samp> element (see below).
2079
 
 
2080
 
<dt><b>color</b>
2081
 
<dd>Used to set the color to stroke the text. Colors are given as RGB
2082
 
in hexadecimal notation or as one of 16 widely understood
2083
 
<a href="red.gif.html#colors">color names</a> defined as per the BGCOLOR attribute
2084
 
on the <a href="red.gif.html#body"><samp>BODY</samp></a> element.
2085
 
</dl>
2086
 
 
2087
 
<p><em>Some user agents also support a <samp>FACE</samp> attribute which
2088
 
accepts a comma separated list of font names in order of preference.
2089
 
This is used to search for an installed font with the corresponding
2090
 
name. <samp>FACE</samp> is not part of HTML 3.2.</em>
2091
 
 
2092
 
<p>The following shows the effects of setting font to absolute sizes:
2093
 
 
2094
 
<p><font size=1>size=1</font>
2095
 
<font size=2>size=2</font>
2096
 
<font size=3>size=3</font>
2097
 
<font size=4>size=4</font>
2098
 
<font size=5>size=5</font>
2099
 
<font size=6>size=6</font>
2100
 
<font size=7>size=7</font>
2101
 
 
2102
 
<p>The following shows the effect of relative font sizes using
2103
 
a base font size of 3:
2104
 
 
2105
 
<p><basefont size=3>
2106
 
<font size="-4">size=-4</font>
2107
 
<font size="-3">size=-3</font>
2108
 
<font size="-2">size=-2</font>
2109
 
<font size="-1">size=-1</font>
2110
 
<font size="+1">size=+1</font>
2111
 
<font size="+2">size=+2</font>
2112
 
<font size="+3">size=+3</font>
2113
 
<font size="+4">size=+4</font>
2114
 
 
2115
 
<p>The same thing with a base font size of 6:
2116
 
 
2117
 
<p><basefont size=6>
2118
 
<font size="-4">size=-4</font>
2119
 
<font size="-3">size=-3</font>
2120
 
<font size="-2">size=-2</font>
2121
 
<font size="-1">size=-1</font>
2122
 
<font size="+1">size=+1</font>
2123
 
<font size="+2">size=+2</font>
2124
 
<font size="+3">size=+3</font>
2125
 
<font size="+4">size=+4</font>
2126
 
<basefont size=3>
2127
 
 
2128
 
<h4><a name=basefont>BASEFONT</a></h4>
2129
 
 
2130
 
<pre>
2131
 
&lt;!ELEMENT BASEFONT - O EMPTY    -- base font size (1 to 7) --&gt;
2132
 
&lt;!ATTLIST BASEFONT
2133
 
    size    CDATA   #IMPLIED    -- e.g. size=4, defaults to 3 --
2134
 
    &gt;</pre>
2135
 
 
2136
 
<p>Used to set the base font size. <samp>BASEFONT</samp> is an empty
2137
 
element so the end tag is forbidden. The <samp>SIZE</samp> attribute is
2138
 
an integer value ranging from 1 to 7. The base font size applies to the
2139
 
normal and preformatted text but not to headings, except where these are
2140
 
modified using the <samp>FONT</samp> element with a relative font size.
2141
 
 
2142
 
<h4><a name=br>BR</a></h4>
2143
 
 
2144
 
<p>Used to force a line break. This is an empty element so the end tag
2145
 
is forbidden. The <samp>CLEAR</samp> attribute can be used to move down
2146
 
past floating images on either margin. <samp>&lt;BR
2147
 
CLEAR=LEFT&gt;</samp> moves down past floating images on the left
2148
 
margin, <samp>&lt;BR CLEAR=RIGHT&gt;</samp> does the same for floating
2149
 
images on the right margin, while <samp>&lt;BR CLEAR=ALL&gt;</samp> does
2150
 
the same for such images on both left and right margins.
2151
 
 
2152
 
<h4><a name=map>MAP</a></h4>
2153
 
 
2154
 
<p>The <samp>MAP</samp> element provides a mechanism for client-side
2155
 
image maps. These can be placed in the same document or grouped in a
2156
 
separate document although this isn't yet widely supported. The
2157
 
<samp>MAP</samp> element requires start and end tags. It contains one or
2158
 
more <samp>AREA</samp> elements that specify hotzones on the associated
2159
 
image and bind these hotzones to URLs.
2160
 
 
2161
 
<pre>&lt;!ENTITY % SHAPE "(rect|circle|poly)"&gt;
2162
 
&lt;!ENTITY % COORDS "CDATA" -- comma separated list of numbers --&gt;
2163
 
 
2164
 
&lt;!ELEMENT MAP - - (AREA)+&gt;
2165
 
&lt;!ATTLIST MAP
2166
 
    name    CDATA   #REQUIRED
2167
 
    &gt;
2168
 
 
2169
 
&lt;!ELEMENT AREA - O EMPTY&gt;
2170
 
&lt;!ATTLIST AREA
2171
 
    shape   %SHAPE  rect
2172
 
    coords  %COORDS #IMPLIED  -- defines coordinates for shape --
2173
 
    href    %URL    #IMPLIED  -- this region acts as hypertext link --
2174
 
    nohref (nohref) #IMPLIED  -- this region has no action --
2175
 
    alt     CDATA   #REQUIRED -- needed for non-graphical user agents --
2176
 
    &gt;</pre>
2177
 
 
2178
 
<p>Here is a simple example for a graphical navigational toolbar:
2179
 
 
2180
 
<pre>&lt;img src="navbar.gif" border=0 usemap="#map1"&gt;
2181
 
 
2182
 
&lt;map name="map1"&gt;
2183
 
 &lt;area href=guide.html alt="Access Guide" shape=rect coords="0,0,118,28"&gt;
2184
 
 &lt;area href=search.html alt="Search" shape=rect coords="184,0,276,28"&gt;
2185
 
 &lt;area href=shortcut.html alt="Go" shape=rect coords="118,0,184,28"&gt;
2186
 
 &lt;area href=top10.html alt="Top Ten" shape=rect coords="276,0,373,28"&gt;
2187
 
&lt;/map&gt;</pre>
2188
 
 
2189
 
<P>The <samp>MAP</samp> element has one attribute <samp>NAME</samp>
2190
 
which is used to associate a name with a map. This is then used by the
2191
 
<samp>USEMAP</samp> attribute on the <samp>IMG</samp> element to
2192
 
reference the map via a URL fragment identifier. Note that the value of
2193
 
the <samp>NAME</samp> attribute is case sensitive.
2194
 
 
2195
 
<p>The <samp>AREA</samp> element is an empty element and so the end tag
2196
 
is forbidden. It takes the following attributes: <samp>SHAPE</samp>,
2197
 
<samp>COORDS</samp>, <samp>HREF</samp>, <samp>NOHREF</samp> and
2198
 
<samp>ALT</samp>. The <samp>SHAPE</samp> and <samp>COORDS</samp>
2199
 
attributes define a region on the image. If the <samp>SHAPE</samp>
2200
 
attribute is omitted, <samp>SHAPE="RECT"</samp> is assumed.
2201
 
 
2202
 
<dl>
2203
 
<dd><b>shape=rect coords="</b><i>left-x<b>,</b> top-y<b>,</b>
2204
 
right-x<b>,</b> bottom-y</i><b>"</b><p>
2205
 
 
2206
 
<dd><b>shape=circle coords="</b><i>center-x<b>,</b>
2207
 
center-y<b>,</b> radius</i><b>"</b> <p>
2208
 
 
2209
 
<dd><b>shape=poly
2210
 
coords="</b><i>x<sub>1</sub><b>,</b>y<sub>1</sub><b>,</b>
2211
 
x<sub>2</sub><b>,</b>y<sub>2</sub><b>,</b>
2212
 
x<sub>3</sub><b>,</b>y<sub>3</sub><b>,</b> ...</i><b>"</b>
2213
 
</dl>
2214
 
 
2215
 
<p>Where <b>x</b> and <b>y</b> are measured in pixels from the left/top
2216
 
of the associated image. If <b>x</b> and <b>y</b> values are given with a
2217
 
percent sign as a suffix, the values should be interpreted as percentages
2218
 
of the image's width and height, respectively. For example:
2219
 
 
2220
 
<pre>   SHAPE=RECT COORDS="0, 0, 50%, 100%"</pre>
2221
 
 
2222
 
<p>The <samp>HREF</samp> attribute gives a URL for the target of the
2223
 
hypertext link. The <samp>NOHREF</samp> attribute is used when you want
2224
 
to define a region that doesn't act as a hotzone. This is useful when
2225
 
you want to cut a hole in an underlying region acting as a hotzone.
2226
 
 
2227
 
<p>If two or more regions overlap, the region defined first in the map
2228
 
definition takes precedence over subsequent regions. This means that
2229
 
<samp>AREA</samp> elements with <samp>NOHREF</samp> should generally be
2230
 
placed before ones with the <samp>HREF</samp> attribute.
2231
 
 
2232
 
<p>The <samp>ALT</samp> attribute is used to provide text labels which
2233
 
can be displayed in the status line as the mouse or other pointing
2234
 
device is moved over hotzones, or for constructing a textual menu for
2235
 
non-graphical user agents. Authors are <b>strongly recommended</b> to
2236
 
provide meaningful <samp>ALT</samp> attributes to support
2237
 
interoperability with speech-based or text-only user agents.
2238
 
 
2239
 
 
2240
 
<hr>
2241
 
<h2><a name=catalog>Sample SGML Open Catalog for HTML 3.2</a></h2>
2242
 
 
2243
 
<p>This can be used with an SGML parser like nsgmls to verify that
2244
 
files conform to the HTML 3.2 DTD. It assumes that the DTD has been
2245
 
saved as the file "HTML32.dtd" and that the Latin-1 entities are
2246
 
in the file "ISOlat1.ent".
2247
 
 
2248
 
<pre>
2249
 
SGMLDECL "HTML32.dcl"
2250
 
PUBLIC "-//W3C//DTD HTML 3.2 Final//EN" HTML32.dtd
2251
 
PUBLIC "-//W3C//DTD HTML 3.2 Draft//EN" HTML32.dtd
2252
 
PUBLIC "-//W3C//DTD HTML 3.2//EN" HTML32.dtd
2253
 
PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML" ISOlat1.ent
2254
 
</pre>
2255
 
 
2256
 
<hr>
2257
 
<h2><a name=sgmldecl>SGML Declaration for HTML 3.2</a></h2>
2258
 
 
2259
 
<p>This uses the 8 bit ISO Latin-1 character set. The size limits on
2260
 
properties like literals and tag names have been considerably increased
2261
 
from their HTML 2.0 values, but it is recommended that user agents avoid
2262
 
imposing arbitrary length limits.
2263
 
 
2264
 
<pre>
2265
 
&lt;!SGML  "ISO 8879:1986"
2266
 
   --
2267
 
        SGML Declaration for HyperText Markup Language version 3.2
2268
 
 
2269
 
        With support for ISO Latin-1 and increased limits
2270
 
        for tag and literal lengths etc.
2271
 
   --
2272
 
 
2273
 
   CHARSET
2274
 
         BASESET  "ISO 646:1983//CHARSET
2275
 
                   International Reference Version
2276
 
                   (IRV)//ESC 2/5 4/0"
2277
 
         DESCSET  0   9   UNUSED
2278
 
                  9   2   9
2279
 
                  11  2   UNUSED
2280
 
                  13  1   13
2281
 
                  14  18  UNUSED
2282
 
                  32  95  32
2283
 
                  127 1   UNUSED
2284
 
         BASESET  "ISO Registration Number 100//CHARSET
2285
 
                   ECMA-94 Right Part of
2286
 
                   Latin Alphabet Nr. 1//ESC 2/13 4/1"
2287
 
         DESCSET  128  32   UNUSED
2288
 
                  160  96    32
2289
 
 
2290
 
   CAPACITY   SGMLREF
2291
 
              TOTALCAP        200000
2292
 
              GRPCAP          150000
2293
 
              ENTCAP          150000
2294
 
 
2295
 
   SCOPE    DOCUMENT
2296
 
   SYNTAX
2297
 
      SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
2298
 
              17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 127
2299
 
      BASESET  "ISO 646:1983//CHARSET
2300
 
                International Reference Version
2301
 
                (IRV)//ESC 2/5 4/0"
2302
 
      DESCSET  0 128 0
2303
 
 
2304
 
      FUNCTION
2305
 
              RE            13
2306
 
              RS            10
2307
 
              SPACE         32
2308
 
              TAB SEPCHAR    9
2309
 
 
2310
 
      NAMING   LCNMSTRT ""
2311
 
               UCNMSTRT ""
2312
 
               LCNMCHAR ".-"
2313
 
               UCNMCHAR ".-"
2314
 
               NAMECASE GENERAL YES
2315
 
                        ENTITY  NO
2316
 
      DELIM    GENERAL  SGMLREF
2317
 
               SHORTREF SGMLREF
2318
 
      NAMES    SGMLREF
2319
 
      QUANTITY SGMLREF
2320
 
               ATTSPLEN 65536
2321
 
               LITLEN   65536
2322
 
               NAMELEN  65536
2323
 
               PILEN    65536
2324
 
               TAGLVL   100
2325
 
               TAGLEN   65536
2326
 
               GRPGTCNT 150
2327
 
               GRPCNT   64
2328
 
 
2329
 
   FEATURES
2330
 
     MINIMIZE
2331
 
       DATATAG  NO
2332
 
       OMITTAG  YES
2333
 
       RANK     NO
2334
 
       SHORTTAG YES
2335
 
     LINK
2336
 
       SIMPLE   NO
2337
 
       IMPLICIT NO
2338
 
       EXPLICIT NO
2339
 
     OTHER
2340
 
       CONCUR   NO
2341
 
       SUBDOC   NO
2342
 
       FORMAL   YES
2343
 
   APPINFO      NONE
2344
 
&gt;
2345
 
</pre>
2346
 
 
2347
 
<hr>
2348
 
<h2><a name=dtd>HTML 3.2 Document Type Definition</a></h2>
2349
 
<pre>
2350
 
&lt;!--
2351
 
        W3C Document Type Definition for the HyperText Markup Language
2352
 
        version 3.2 as ratified by a vote of W3C member companies.
2353
 
        For more information on W3C look at  URL http://www.w3.org/
2354
 
 
2355
 
        Date: Tuesday January 14th 1997
2356
 
 
2357
 
        Author: Dave Raggett &lt;dsr@w3.org&gt;
2358
 
 
2359
 
        HTML 3.2 aims to capture recommended practice as of early '96
2360
 
        and as such to be used as a replacement for HTML 2.0 (RFC 1866).
2361
 
        Widely deployed rendering attributes are included where they
2362
 
        have been shown to be interoperable. SCRIPT and STYLE are
2363
 
        included to smooth the introduction of client-side scripts
2364
 
        and style sheets. Browsers must avoid showing the contents
2365
 
        of these element Otherwise support for them is not required.
2366
 
        ID, CLASS and STYLE attributes are not included in this version
2367
 
        of HTML.
2368
 
--&gt;
2369
 
 
2370
 
&lt;!ENTITY % HTML.Version
2371
 
        "-//W3C//DTD HTML 3.2 Final//EN"
2372
 
 
2373
 
        -- Typical usage:
2374
 
 
2375
 
            &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&gt;
2376
 
            &lt;html&gt;
2377
 
            ...
2378
 
            &lt;/html&gt;
2379
 
        --
2380
 
        &gt;
2381
 
 
2382
 
&lt;!--================== Deprecated Features Switch =========================--&gt;
2383
 
 
2384
 
&lt;!ENTITY % HTML.Deprecated "INCLUDE"&gt;
2385
 
 
2386
 
&lt;!--================== Imported Names =====================================--&gt;
2387
 
 
2388
 
&lt;!ENTITY % Content-Type "CDATA"
2389
 
        -- meaning a MIME content type, as per RFC1521
2390
 
        --&gt;
2391
 
 
2392
 
&lt;!ENTITY % HTTP-Method "GET | POST"
2393
 
        -- as per HTTP specification
2394
 
        --&gt;
2395
 
 
2396
 
&lt;!ENTITY % URL "CDATA"
2397
 
        -- The term URL means a CDATA attribute
2398
 
           whose value is a Uniform Resource Locator,
2399
 
           See RFC1808 (June 95) and RFC1738 (Dec 94).
2400
 
        --&gt;
2401
 
 
2402
 
&lt;!-- Parameter Entities --&gt;
2403
 
 
2404
 
&lt;!ENTITY % head.misc "SCRIPT|STYLE|META|LINK" -- repeatable head elements --&gt;
2405
 
 
2406
 
&lt;!ENTITY % heading "H1|H2|H3|H4|H5|H6"&gt;
2407
 
 
2408
 
&lt;!ENTITY % list "UL | OL |  DIR | MENU"&gt;
2409
 
 
2410
 
&lt;![ %HTML.Deprecated [
2411
 
    &lt;!ENTITY % preformatted "PRE | XMP | LISTING"&gt;
2412
 
]]&gt;
2413
 
 
2414
 
&lt;!ENTITY % preformatted "PRE"&gt;
2415
 
 
2416
 
&lt;!--================ Character mnemonic entities ==========================--&gt;
2417
 
 
2418
 
&lt;!ENTITY % ISOlat1 PUBLIC
2419
 
       "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML"&gt;
2420
 
%ISOlat1;
2421
 
 
2422
 
&lt;!--================ Entities for special symbols =========================--&gt;
2423
 
&lt;!-- &amp;trade and &amp;cbsp are not widely deployed and so not included here --&gt;
2424
 
 
2425
 
&lt;!ENTITY amp    CDATA "&amp;#38;"   -- ampersand          --&gt;
2426
 
&lt;!ENTITY gt     CDATA "&amp;#62;"   -- greater than       --&gt;
2427
 
&lt;!ENTITY lt     CDATA "&amp;#60;"   -- less than          --&gt;
2428
 
 
2429
 
&lt;!--=================== Text Markup =======================================--&gt;
2430
 
 
2431
 
&lt;!ENTITY % font "TT | I | B  | U | STRIKE | BIG | SMALL | SUB | SUP"&gt;
2432
 
 
2433
 
&lt;!ENTITY % phrase "EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE"&gt;
2434
 
 
2435
 
&lt;!ENTITY % special "A | IMG | APPLET | FONT | BASEFONT | BR | SCRIPT | MAP"&gt;
2436
 
 
2437
 
&lt;!ENTITY % form "INPUT | SELECT | TEXTAREA"&gt;
2438
 
 
2439
 
&lt;!ENTITY % text "#PCDATA | %font | %phrase | %special | %form"&gt;
2440
 
 
2441
 
&lt;!ELEMENT (%font|%phrase) - - (%text)*&gt;
2442
 
 
2443
 
&lt;!-- there are also 16 widely known color names although
2444
 
  the resulting colors are implementation dependent:
2445
 
 
2446
 
   aqua, black, blue, fuchsia, gray, green, lime, maroon,
2447
 
   navy, olive, purple, red, silver, teal, white, and yellow
2448
 
 
2449
 
 These colors were originally picked as being the standard
2450
 
 16 colors supported with the Windows VGA palette.
2451
 
 --&gt;
2452
 
 
2453
 
&lt;!ELEMENT FONT - - (%text)*     -- local change to font --&gt;
2454
 
&lt;!ATTLIST FONT
2455
 
    size    CDATA   #IMPLIED    -- [+]nn e.g. size="+1", size=4 --
2456
 
    color   CDATA   #IMPLIED    -- #RRGGBB in hex, e.g. red: color="#FF0000" --
2457
 
    &gt;
2458
 
 
2459
 
&lt;!ELEMENT BASEFONT - O EMPTY    -- base font size (1 to 7)--&gt;
2460
 
&lt;!ATTLIST BASEFONT
2461
 
    size    CDATA   #IMPLIED    -- e.g. size=3 --
2462
 
    &gt;
2463
 
 
2464
 
&lt;!ELEMENT BR    - O EMPTY    -- forced line break --&gt;
2465
 
&lt;!ATTLIST BR
2466
 
        clear (left|all|right|none) none -- control of text flow --
2467
 
        &gt;
2468
 
 
2469
 
&lt;!--================== HTML content models ================================--&gt;
2470
 
&lt;!--
2471
 
    HTML has three basic content models:
2472
 
 
2473
 
        %text       character level elements and text strings
2474
 
        %flow       block-like elements e.g. paragraphs and lists
2475
 
        %bodytext   as %flow plus headers H1-H6 and ADDRESS
2476
 
--&gt;
2477
 
 
2478
 
&lt;!ENTITY % block
2479
 
     "P | %list | %preformatted | DL | DIV | CENTER |
2480
 
      BLOCKQUOTE | FORM | ISINDEX | HR | TABLE"&gt;
2481
 
 
2482
 
&lt;!-- %flow is used for DD and LI --&gt;
2483
 
 
2484
 
&lt;!ENTITY % flow "(%text | %block)*"&gt;
2485
 
 
2486
 
&lt;!--=================== Document Body =====================================--&gt;
2487
 
 
2488
 
&lt;!ENTITY % body.content "(%heading | %text | %block | ADDRESS)*"&gt;
2489
 
 
2490
 
&lt;!ENTITY % color "CDATA" -- a color specification: #HHHHHH @@ details? --&gt;
2491
 
 
2492
 
&lt;!ENTITY % body-color-attrs "
2493
 
        bgcolor %color #IMPLIED
2494
 
        text %color #IMPLIED
2495
 
        link %color #IMPLIED
2496
 
        vlink %color #IMPLIED
2497
 
        alink %color #IMPLIED
2498
 
        "&gt;
2499
 
 
2500
 
&lt;!ELEMENT BODY O O  %body.content&gt;
2501
 
&lt;!ATTLIST BODY
2502
 
        background %URL #IMPLIED  -- texture tile for document background --
2503
 
        %body-color-attrs;  -- bgcolor, text, link, vlink, alink --
2504
 
        &gt;
2505
 
 
2506
 
&lt;!ENTITY % address.content "((%text;) | P)*"&gt;
2507
 
 
2508
 
&lt;!ELEMENT ADDRESS - - %address.content&gt;
2509
 
 
2510
 
&lt;!ELEMENT DIV - - %body.content&gt;
2511
 
&lt;!ATTLIST DIV
2512
 
        align   (left|center|right) #IMPLIED -- alignment of following text --
2513
 
        &gt;
2514
 
 
2515
 
&lt;!-- CENTER is a shorthand for DIV with ALIGN=CENTER --&gt;
2516
 
&lt;!ELEMENT center - - %body.content&gt;
2517
 
 
2518
 
&lt;!--================== The Anchor Element =================================--&gt;
2519
 
 
2520
 
&lt;!ELEMENT A - - (%text)* -(A)&gt;
2521
 
&lt;!ATTLIST A
2522
 
        name    CDATA   #IMPLIED    -- named link end --
2523
 
        href    %URL    #IMPLIED    -- URL for linked resource --
2524
 
        rel     CDATA   #IMPLIED    -- forward link types --
2525
 
        rev     CDATA   #IMPLIED    -- reverse link types --
2526
 
        title   CDATA   #IMPLIED    -- advisory title string --
2527
 
        &gt;
2528
 
 
2529
 
&lt;!--================== Client-side image maps ============================--&gt;
2530
 
 
2531
 
&lt;!-- These can be placed in the same document or grouped in a
2532
 
     separate document although this isn't yet widely supported --&gt;
2533
 
 
2534
 
&lt;!ENTITY % SHAPE "(rect|circle|poly)"&gt;
2535
 
&lt;!ENTITY % COORDS "CDATA" -- comma separated list of numbers --&gt;
2536
 
 
2537
 
&lt;!ELEMENT MAP - - (AREA)*&gt;
2538
 
&lt;!ATTLIST MAP
2539
 
    name    CDATA   #IMPLIED
2540
 
    &gt;
2541
 
 
2542
 
&lt;!ELEMENT AREA - O EMPTY&gt;
2543
 
&lt;!ATTLIST AREA
2544
 
    shape   %SHAPE  rect
2545
 
    coords  %COORDS #IMPLIED  -- defines coordinates for shape --
2546
 
    href    %URL    #IMPLIED  -- this region acts as hypertext link --
2547
 
    nohref (nohref) #IMPLIED  -- this region has no action --
2548
 
    alt     CDATA   #REQUIRED -- needed for non-graphical user agents --
2549
 
    &gt;
2550
 
 
2551
 
&lt;!--================== The LINK Element ==================================--&gt;
2552
 
 
2553
 
&lt;!ENTITY % Types "CDATA"
2554
 
        -- See Internet Draft: draft-ietf-html-relrev-00.txt
2555
 
           LINK has been part of HTML since the early days
2556
 
           although few browsers as yet take advantage of it.
2557
 
 
2558
 
           Relationship values can be used in principle:
2559
 
 
2560
 
                a) for document specific toolbars/menus when used
2561
 
                   with the LINK element in the document head:
2562
 
                b) to link to a separate style sheet
2563
 
                c) to make a link to a script
2564
 
                d) by stylesheets to control how collections of
2565
 
                   html nodes are rendered into printed documents
2566
 
                e) to make a link to a printable version of this document
2567
 
                   e.g. a postscript or pdf version
2568
 
--&gt;
2569
 
 
2570
 
&lt;!ELEMENT LINK - O EMPTY&gt;
2571
 
&lt;!ATTLIST LINK
2572
 
        href    %URL    #IMPLIED    -- URL for linked resource --
2573
 
        rel     %Types  #IMPLIED    -- forward link types --
2574
 
        rev     %Types  #IMPLIED    -- reverse link types --
2575
 
        title   CDATA   #IMPLIED    -- advisory title string --
2576
 
        &gt;
2577
 
 
2578
 
&lt;!--=================== Images ============================================--&gt;
2579
 
 
2580
 
&lt;!ENTITY % Length "CDATA"   -- nn for pixels or nn% for percentage length --&gt;
2581
 
&lt;!ENTITY % Pixels "NUMBER"  -- integer representing length in pixels --&gt;
2582
 
 
2583
 
&lt;!-- Suggested widths are used for negotiating image size
2584
 
     with the module responsible for painting the image.
2585
 
     align=left or right cause image to float to margin
2586
 
     and for subsequent text to wrap around image --&gt;
2587
 
 
2588
 
&lt;!ENTITY % IAlign "(top|middle|bottom|left|right)"&gt;
2589
 
 
2590
 
&lt;!ELEMENT IMG    - O EMPTY --  Embedded image --&gt;
2591
 
&lt;!ATTLIST IMG
2592
 
        src     %URL     #REQUIRED  -- URL of image to embed --
2593
 
        alt     CDATA    #IMPLIED   -- for display in place of image --
2594
 
        align   %IAlign  #IMPLIED   -- vertical or horizontal alignment --
2595
 
        height  %Pixels  #IMPLIED   -- suggested height in pixels --
2596
 
        width   %Pixels  #IMPLIED   -- suggested width in pixels --
2597
 
        border  %Pixels  #IMPLIED   -- suggested link border width --
2598
 
        hspace  %Pixels  #IMPLIED   -- suggested horizontal gutter --
2599
 
        vspace  %Pixels  #IMPLIED   -- suggested vertical gutter --
2600
 
        usemap  %URL     #IMPLIED   -- use client-side image map --
2601
 
        ismap   (ismap)  #IMPLIED   -- use server image map --
2602
 
        &gt;
2603
 
 
2604
 
&lt;!-- USEMAP points to a MAP element which may be in this document
2605
 
  or an external document, although the latter is not widely supported --&gt;
2606
 
 
2607
 
&lt;!--=================== Java APPLET tag ===================================--&gt;
2608
 
&lt;!--
2609
 
  This tag is supported by all Java enabled browsers. Applet resources
2610
 
  (including their classes) are normally loaded relative to the document
2611
 
  URL (or &lt;BASE&gt; element if it is defined). The CODEBASE attribute is used
2612
 
  to change this default behavior. If the CODEBASE attribute is defined then
2613
 
  it specifies a different location to find applet resources. The value
2614
 
  can be an absolute URL or a relative URL. The absolute URL is used as is
2615
 
  without modification and is not effected by the documents &lt;BASE&gt; element.
2616
 
  When the codebase attribute is relative, then it is relative to the
2617
 
  document URL (or &lt;BASE&gt; tag if defined).
2618
 
--&gt;
2619
 
&lt;!ELEMENT APPLET - - (PARAM | %text)*&gt;
2620
 
&lt;!ATTLIST APPLET
2621
 
        codebase %URL     #IMPLIED   -- code base --
2622
 
        code     CDATA    #REQUIRED  -- class file --
2623
 
        alt      CDATA    #IMPLIED   -- for display in place of applet --
2624
 
        name     CDATA    #IMPLIED   -- applet name --
2625
 
        width    %Pixels  #REQUIRED  -- suggested width in pixels --
2626
 
        height   %Pixels  #REQUIRED  -- suggested height in pixels --
2627
 
        align    %IAlign  #IMPLIED   -- vertical or horizontal alignment --
2628
 
        hspace   %Pixels  #IMPLIED   -- suggested horizontal gutter --
2629
 
        vspace   %Pixels  #IMPLIED   -- suggested vertical gutter --
2630
 
        &gt;
2631
 
 
2632
 
&lt;!ELEMENT PARAM - O EMPTY&gt;
2633
 
&lt;!ATTLIST PARAM
2634
 
        name    NMTOKEN   #REQUIRED  -- The name of the parameter --
2635
 
        value   CDATA     #IMPLIED   -- The value of the parameter --
2636
 
        &gt;
2637
 
 
2638
 
&lt;!--
2639
 
Here is an example:
2640
 
 
2641
 
    &lt;applet codebase="applets/NervousText"
2642
 
        code=NervousText.class
2643
 
        width=300
2644
 
        height=50&gt;
2645
 
    &lt;param name=text value="Java is Cool!"&gt;
2646
 
    &lt;img src=sorry.gif alt="This looks better with Java support"&gt;
2647
 
    &lt;/applet&gt;
2648
 
--&gt;
2649
 
 
2650
 
&lt;!--=================== Horizontal Rule ===================================--&gt;
2651
 
 
2652
 
&lt;!ELEMENT HR    - O EMPTY&gt;
2653
 
&lt;!ATTLIST HR
2654
 
        align (left|right|center) #IMPLIED
2655
 
        noshade (noshade) #IMPLIED
2656
 
        size  %Pixels #IMPLIED
2657
 
        width %Length #IMPLIED
2658
 
        &gt;
2659
 
&lt;!--=================== Paragraphs=========================================--&gt;
2660
 
 
2661
 
&lt;!ELEMENT P     - O (%text)*&gt;
2662
 
&lt;!ATTLIST P
2663
 
        align  (left|center|right) #IMPLIED
2664
 
        &gt;
2665
 
 
2666
 
&lt;!--=================== Headings ==========================================--&gt;
2667
 
 
2668
 
&lt;!--
2669
 
  There are six levels of headers from H1 (the most important)
2670
 
  to H6 (the least important).
2671
 
--&gt;
2672
 
 
2673
 
&lt;!ELEMENT ( %heading )  - -  (%text;)*&gt;
2674
 
&lt;!ATTLIST ( %heading )
2675
 
        align  (left|center|right) #IMPLIED
2676
 
        &gt;
2677
 
 
2678
 
&lt;!--=================== Preformatted Text =================================--&gt;
2679
 
 
2680
 
&lt;!-- excludes images and changes in font size --&gt;
2681
 
 
2682
 
&lt;!ENTITY % pre.exclusion "IMG|BIG|SMALL|SUB|SUP|FONT"&gt;
2683
 
 
2684
 
&lt;!ELEMENT PRE - - (%text)* -(%pre.exclusion)&gt;
2685
 
&lt;!ATTLIST PRE
2686
 
        width NUMBER #implied -- is this widely supported? --
2687
 
        &gt;
2688
 
 
2689
 
&lt;![ %HTML.Deprecated [
2690
 
 
2691
 
&lt;!ENTITY % literal "CDATA"
2692
 
        -- historical, non-conforming parsing mode where
2693
 
           the only markup signal is the end tag
2694
 
           in full
2695
 
        --&gt;
2696
 
 
2697
 
&lt;!ELEMENT (XMP|LISTING) - -  %literal&gt;
2698
 
&lt;!ELEMENT PLAINTEXT - O %literal&gt;
2699
 
 
2700
 
]]&gt;
2701
 
 
2702
 
&lt;!--=================== Block-like Quotes =================================--&gt;
2703
 
 
2704
 
&lt;!ELEMENT BLOCKQUOTE - - %body.content&gt;
2705
 
 
2706
 
&lt;!--=================== Lists =============================================--&gt;
2707
 
 
2708
 
&lt;!--
2709
 
    HTML 3.2 allows you to control the sequence number for ordered lists.
2710
 
    You can set the sequence number with the START and VALUE attributes.
2711
 
    The TYPE attribute may be used to specify the rendering of ordered
2712
 
    and unordered lists.
2713
 
--&gt;
2714
 
 
2715
 
&lt;!-- definition lists - DT for term, DD for its definition --&gt;
2716
 
 
2717
 
&lt;!ELEMENT DL    - -  (DT|DD)+&gt;
2718
 
&lt;!ATTLIST DL
2719
 
        compact (compact) #IMPLIED -- more compact style --
2720
 
        &gt;
2721
 
 
2722
 
&lt;!ELEMENT DT - O  (%text)*&gt;
2723
 
&lt;!ELEMENT DD - O  %flow;&gt;
2724
 
 
2725
 
&lt;!-- Ordered lists OL, and unordered lists UL --&gt;
2726
 
&lt;!ELEMENT (OL|UL) - -  (LI)+&gt;
2727
 
 
2728
 
&lt;!--
2729
 
       Numbering style
2730
 
    1   Arabic numbers      1, 2, 3, ...
2731
 
    a   lower alpha         a, b, c, ...
2732
 
    A   upper alpha         A, B, C, ...
2733
 
    i   lower Roman         i, ii, iii, ...
2734
 
    I   upper Roman         I, II, III, ...
2735
 
 
2736
 
    The style is applied to the sequence number which by default
2737
 
    is reset to 1 for the first list item in an ordered list.
2738
 
 
2739
 
    This can't be expressed directly in SGML due to case folding.
2740
 
--&gt;
2741
 
 
2742
 
&lt;!ENTITY % OLStyle "CDATA" -- constrained to: [1|a|A|i|I] --&gt;
2743
 
 
2744
 
&lt;!ATTLIST OL -- ordered lists --
2745
 
        type      %OLStyle   #IMPLIED   -- numbering style --
2746
 
        start     NUMBER     #IMPLIED   -- starting sequence number --
2747
 
        compact  (compact)   #IMPLIED   -- reduced interitem spacing --
2748
 
        &gt;
2749
 
 
2750
 
&lt;!-- bullet styles --&gt;
2751
 
 
2752
 
&lt;!ENTITY % ULStyle "disc|square|circle"&gt;
2753
 
 
2754
 
&lt;!ATTLIST UL -- unordered lists --
2755
 
        type    (%ULStyle)   #IMPLIED   -- bullet style --
2756
 
        compact (compact)    #IMPLIED   -- reduced interitem spacing --
2757
 
        &gt;
2758
 
 
2759
 
&lt;!ELEMENT (DIR|MENU) - -  (LI)+ -(%block)&gt;
2760
 
&lt;!ATTLIST DIR
2761
 
        compact (compact) #IMPLIED
2762
 
        &gt;
2763
 
&lt;!ATTLIST MENU
2764
 
        compact (compact) #IMPLIED
2765
 
        &gt;
2766
 
 
2767
 
&lt;!-- &lt;DIR&gt;              Directory list                  --&gt;
2768
 
&lt;!-- &lt;DIR COMPACT&gt;      Compact list style              --&gt;
2769
 
&lt;!-- &lt;MENU&gt;             Menu list                       --&gt;
2770
 
&lt;!-- &lt;MENU COMPACT&gt;     Compact list style              --&gt;
2771
 
 
2772
 
&lt;!-- The type attribute can be used to change the bullet style
2773
 
     in unordered lists and the numbering style in ordered lists --&gt;
2774
 
 
2775
 
&lt;!ENTITY % LIStyle "CDATA" -- constrained to: "(%ULStyle|%OLStyle)" --&gt;
2776
 
 
2777
 
&lt;!ELEMENT LI - O %flow -- list item --&gt;
2778
 
&lt;!ATTLIST LI
2779
 
        type    %LIStyle     #IMPLIED   -- list item style --
2780
 
        value    NUMBER      #IMPLIED   -- reset sequence number --
2781
 
        &gt;
2782
 
 
2783
 
&lt;!--================ Forms ===============================================--&gt;
2784
 
 
2785
 
&lt;!ELEMENT FORM - - %body.content -(FORM)&gt;
2786
 
&lt;!ATTLIST FORM
2787
 
        action %URL #IMPLIED  -- server-side form handler --
2788
 
        method (%HTTP-Method) GET -- see HTTP specification --
2789
 
        enctype %Content-Type; "application/x-www-form-urlencoded"
2790
 
        &gt;
2791
 
 
2792
 
&lt;!ENTITY % InputType
2793
 
        "(TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT
2794
 
            | RESET | FILE | HIDDEN | IMAGE)"&gt;
2795
 
 
2796
 
&lt;!ELEMENT INPUT - O EMPTY&gt;
2797
 
&lt;!ATTLIST INPUT
2798
 
        type %InputType TEXT     -- what kind of widget is needed --
2799
 
        name  CDATA   #IMPLIED   -- required for all but submit and reset --
2800
 
        value CDATA   #IMPLIED   -- required for radio and checkboxes --
2801
 
        checked (checked) #IMPLIED -- for radio buttons and check boxes --
2802
 
        size CDATA    #IMPLIED   -- specific to each type of field --
2803
 
        maxlength NUMBER #IMPLIED -- max chars allowed in text fields --
2804
 
        src   %URL    #IMPLIED   -- for fields with background images --
2805
 
        align %IAlign #IMPLIED   -- vertical or horizontal alignment --
2806
 
        &gt;
2807
 
 
2808
 
&lt;!ELEMENT SELECT - - (OPTION+)&gt;
2809
 
&lt;!ATTLIST SELECT
2810
 
        name CDATA #REQUIRED
2811
 
        size NUMBER #IMPLIED
2812
 
        multiple (multiple) #IMPLIED
2813
 
        &gt;
2814
 
 
2815
 
&lt;!ELEMENT OPTION - O (#PCDATA)*&gt;
2816
 
&lt;!ATTLIST OPTION
2817
 
        selected (selected) #IMPLIED
2818
 
        value  CDATA  #IMPLIED -- defaults to element content --
2819
 
        &gt;
2820
 
 
2821
 
&lt;!-- Multi-line text input field. --&gt;
2822
 
 
2823
 
&lt;!ELEMENT TEXTAREA - - (#PCDATA)*&gt;
2824
 
&lt;!ATTLIST TEXTAREA
2825
 
        name CDATA #REQUIRED
2826
 
        rows NUMBER #REQUIRED
2827
 
        cols NUMBER #REQUIRED
2828
 
        &gt;
2829
 
 
2830
 
&lt;!--======================= Tables ========================================--&gt;
2831
 
 
2832
 
&lt;!-- Widely deployed subset of the full table standard, see RFC 1942
2833
 
     e.g. at http://www.ics.uci.edu/pub/ietf/html/rfc1942.txt --&gt;
2834
 
 
2835
 
&lt;!-- horizontal placement of table relative to window --&gt;
2836
 
&lt;!ENTITY % Where "(left|center|right)"&gt;
2837
 
 
2838
 
&lt;!-- horizontal alignment attributes for cell contents --&gt;
2839
 
&lt;!ENTITY % cell.halign
2840
 
        "align  (left|center|right) #IMPLIED"
2841
 
        &gt;
2842
 
 
2843
 
&lt;!-- vertical alignment attributes for cell contents --&gt;
2844
 
&lt;!ENTITY % cell.valign
2845
 
        "valign  (top|middle|bottom)  #IMPLIED"
2846
 
        &gt;
2847
 
 
2848
 
&lt;!ELEMENT table - - (caption?, tr+)&gt;
2849
 
&lt;!ELEMENT tr - O (th|td)*&gt;
2850
 
&lt;!ELEMENT (th|td) - O %body.content&gt;
2851
 
 
2852
 
&lt;!ATTLIST table                       -- table element --
2853
 
        align     %Where;   #IMPLIED  -- table position relative to window --
2854
 
        width     %Length   #IMPLIED  -- table width relative to window --
2855
 
        border    %Pixels   #IMPLIED  -- controls frame width around table --
2856
 
        cellspacing %Pixels #IMPLIED  -- spacing between cells --
2857
 
        cellpadding %Pixels #IMPLIED  -- spacing within cells --
2858
 
        &gt;
2859
 
 
2860
 
&lt;!ELEMENT CAPTION - - (%text;)* -- table or figure caption --&gt;
2861
 
&lt;!ATTLIST CAPTION
2862
 
        align (top|bottom) #IMPLIED
2863
 
        &gt;
2864
 
 
2865
 
&lt;!ATTLIST tr                       -- table row --
2866
 
        %cell.halign;              -- horizontal alignment in cells --
2867
 
        %cell.valign;              -- vertical alignment in cells --
2868
 
        &gt;
2869
 
 
2870
 
&lt;!ATTLIST (th|td)                  -- header or data cell --
2871
 
        nowrap (nowrap)  #IMPLIED  -- suppress word wrap --
2872
 
        rowspan NUMBER   1         -- number of rows spanned by cell --
2873
 
        colspan NUMBER   1         -- number of cols spanned by cell --
2874
 
        %cell.halign;              -- horizontal alignment in cell --
2875
 
        %cell.valign;              -- vertical alignment in cell --
2876
 
        width   %Pixels  #IMPLIED  -- suggested width for cell --
2877
 
        height  %Pixels  #IMPLIED  -- suggested height for cell --
2878
 
        &gt;
2879
 
 
2880
 
&lt;!--================ Document Head ========================================--&gt;
2881
 
 
2882
 
&lt;!-- %head.misc defined earlier on as "SCRIPT|STYLE|META|LINK" --&gt;
2883
 
 
2884
 
&lt;!ENTITY % head.content "TITLE &amp; ISINDEX? &amp; BASE?"&gt;
2885
 
 
2886
 
&lt;!ELEMENT HEAD O O  (%head.content) +(%head.misc)&gt;
2887
 
 
2888
 
&lt;!ELEMENT TITLE - -  (#PCDATA)* -(%head.misc)
2889
 
          -- The TITLE element is not considered part of the flow of text.
2890
 
             It should be displayed, for example as the page header or
2891
 
             window title.
2892
 
          --&gt;
2893
 
 
2894
 
&lt;!ELEMENT ISINDEX - O EMPTY&gt;
2895
 
&lt;!ATTLIST ISINDEX
2896
 
        prompt CDATA #IMPLIED -- prompt message --&gt;
2897
 
 
2898
 
&lt;!--
2899
 
    The BASE element gives an absolute URL for dereferencing relative
2900
 
    URLs, e.g.
2901
 
 
2902
 
         &lt;BASE href="http://foo.com/index.html"&gt;
2903
 
         ...
2904
 
         &lt;IMG SRC="images/bar.gif"&gt;
2905
 
 
2906
 
    The image is deferenced to
2907
 
 
2908
 
         http://foo.com/images/bar.gif
2909
 
 
2910
 
   In the absence of a BASE element the document URL should be used.
2911
 
   Note that this is not necessarily the same as the URL used to
2912
 
   request the document, as the base URL may be overridden by an HTTP
2913
 
   header accompanying the document.
2914
 
--&gt;
2915
 
 
2916
 
&lt;!ELEMENT BASE - O EMPTY&gt;
2917
 
&lt;!ATTLIST BASE
2918
 
        href %URL  #REQUIRED
2919
 
        &gt;
2920
 
 
2921
 
&lt;!ELEMENT META - O EMPTY -- Generic Metainformation --&gt;
2922
 
&lt;!ATTLIST META
2923
 
        http-equiv  NAME    #IMPLIED  -- HTTP response header name  --
2924
 
        name        NAME    #IMPLIED  -- metainformation name       --
2925
 
        content     CDATA   #REQUIRED -- associated information     --
2926
 
        &gt;
2927
 
 
2928
 
&lt;!-- SCRIPT/STYLE are place holders for transition to next version of HTML --&gt;
2929
 
 
2930
 
&lt;!ELEMENT STYLE  - - CDATA -- placeholder for style info --&gt;
2931
 
&lt;!ELEMENT SCRIPT - - CDATA -- placeholder for script statements --&gt;
2932
 
 
2933
 
&lt;!--================ Document Structure ===================================--&gt;
2934
 
 
2935
 
&lt;!ENTITY % version.attr "VERSION CDATA #FIXED '%HTML.Version;'"&gt;
2936
 
 
2937
 
&lt;![ %HTML.Deprecated [
2938
 
    &lt;!ENTITY % html.content "HEAD, BODY, PLAINTEXT?"&gt;
2939
 
]]&gt;
2940
 
 
2941
 
&lt;!ENTITY % html.content "HEAD, BODY"&gt;
2942
 
 
2943
 
&lt;!ELEMENT HTML O O  (%html.content)&gt;
2944
 
&lt;!ATTLIST HTML
2945
 
        %version.attr;
2946
 
        &gt;
2947
 
</pre>
2948
 
 
2949
 
<hr>
2950
 
<h2><a name=latin1>Character Entities for ISO Latin-1</a></h2>
2951
 
<pre>
2952
 
 
2953
 
&lt;!-- (C) International Organization for Standardization 1986
2954
 
     Permission to copy in any form is granted for use with
2955
 
     conforming SGML systems and applications as defined in
2956
 
     ISO 8879, provided this notice is included in all copies.
2957
 
     This has been extended for use with HTML to cover the full
2958
 
     set of codes in the range 160-255 decimal.
2959
 
--&gt;
2960
 
&lt;!-- Character entity set. Typical invocation:
2961
 
     &lt;!ENTITY % ISOlat1 PUBLIC
2962
 
       "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML"&gt;
2963
 
     %ISOlat1;
2964
 
--&gt;
2965
 
    &lt;!ENTITY nbsp   CDATA "&amp;#160;" -- no-break space --&gt;
2966
 
    &lt;!ENTITY iexcl  CDATA "&amp;#161;" -- inverted exclamation mark --&gt;
2967
 
    &lt;!ENTITY cent   CDATA "&amp;#162;" -- cent sign --&gt;
2968
 
    &lt;!ENTITY pound  CDATA "&amp;#163;" -- pound sterling sign --&gt;
2969
 
    &lt;!ENTITY curren CDATA "&amp;#164;" -- general currency sign --&gt;
2970
 
    &lt;!ENTITY yen    CDATA "&amp;#165;" -- yen sign --&gt;
2971
 
    &lt;!ENTITY brvbar CDATA "&amp;#166;" -- broken (vertical) bar --&gt;
2972
 
    &lt;!ENTITY sect   CDATA "&amp;#167;" -- section sign --&gt;
2973
 
    &lt;!ENTITY uml    CDATA "&amp;#168;" -- umlaut (dieresis) --&gt;
2974
 
    &lt;!ENTITY copy   CDATA "&amp;#169;" -- copyright sign --&gt;
2975
 
    &lt;!ENTITY ordf   CDATA "&amp;#170;" -- ordinal indicator, feminine --&gt;
2976
 
    &lt;!ENTITY laquo  CDATA "&amp;#171;" -- angle quotation mark, left --&gt;
2977
 
    &lt;!ENTITY not    CDATA "&amp;#172;" -- not sign --&gt;
2978
 
    &lt;!ENTITY shy    CDATA "&amp;#173;" -- soft hyphen --&gt;
2979
 
    &lt;!ENTITY reg    CDATA "&amp;#174;" -- registered sign --&gt;
2980
 
    &lt;!ENTITY macr   CDATA "&amp;#175;" -- macron --&gt;
2981
 
    &lt;!ENTITY deg    CDATA "&amp;#176;" -- degree sign --&gt;
2982
 
    &lt;!ENTITY plusmn CDATA "&amp;#177;" -- plus-or-minus sign --&gt;
2983
 
    &lt;!ENTITY sup2   CDATA "&amp;#178;" -- superscript two --&gt;
2984
 
    &lt;!ENTITY sup3   CDATA "&amp;#179;" -- superscript three --&gt;
2985
 
    &lt;!ENTITY acute  CDATA "&amp;#180;" -- acute accent --&gt;
2986
 
    &lt;!ENTITY micro  CDATA "&amp;#181;" -- micro sign --&gt;
2987
 
    &lt;!ENTITY para   CDATA "&amp;#182;" -- pilcrow (paragraph sign) --&gt;
2988
 
    &lt;!ENTITY middot CDATA "&amp;#183;" -- middle dot --&gt;
2989
 
    &lt;!ENTITY cedil  CDATA "&amp;#184;" -- cedilla --&gt;
2990
 
    &lt;!ENTITY sup1   CDATA "&amp;#185;" -- superscript one --&gt;
2991
 
    &lt;!ENTITY ordm   CDATA "&amp;#186;" -- ordinal indicator, masculine --&gt;
2992
 
    &lt;!ENTITY raquo  CDATA "&amp;#187;" -- angle quotation mark, right --&gt;
2993
 
    &lt;!ENTITY frac14 CDATA "&amp;#188;" -- fraction one-quarter --&gt;
2994
 
    &lt;!ENTITY frac12 CDATA "&amp;#189;" -- fraction one-half --&gt;
2995
 
    &lt;!ENTITY frac34 CDATA "&amp;#190;" -- fraction three-quarters --&gt;
2996
 
    &lt;!ENTITY iquest CDATA "&amp;#191;" -- inverted question mark --&gt;
2997
 
    &lt;!ENTITY Agrave CDATA "&amp;#192;" -- capital A, grave accent --&gt;
2998
 
    &lt;!ENTITY Aacute CDATA "&amp;#193;" -- capital A, acute accent --&gt;
2999
 
    &lt;!ENTITY Acirc  CDATA "&amp;#194;" -- capital A, circumflex accent --&gt;
3000
 
    &lt;!ENTITY Atilde CDATA "&amp;#195;" -- capital A, tilde --&gt;
3001
 
    &lt;!ENTITY Auml   CDATA "&amp;#196;" -- capital A, dieresis or umlaut mark --&gt;
3002
 
    &lt;!ENTITY Aring  CDATA "&amp;#197;" -- capital A, ring --&gt;
3003
 
    &lt;!ENTITY AElig  CDATA "&amp;#198;" -- capital AE diphthong (ligature) --&gt;
3004
 
    &lt;!ENTITY Ccedil CDATA "&amp;#199;" -- capital C, cedilla --&gt;
3005
 
    &lt;!ENTITY Egrave CDATA "&amp;#200;" -- capital E, grave accent --&gt;
3006
 
    &lt;!ENTITY Eacute CDATA "&amp;#201;" -- capital E, acute accent --&gt;
3007
 
    &lt;!ENTITY Ecirc  CDATA "&amp;#202;" -- capital E, circumflex accent --&gt;
3008
 
    &lt;!ENTITY Euml   CDATA "&amp;#203;" -- capital E, dieresis or umlaut mark --&gt;
3009
 
    &lt;!ENTITY Igrave CDATA "&amp;#204;" -- capital I, grave accent --&gt;
3010
 
    &lt;!ENTITY Iacute CDATA "&amp;#205;" -- capital I, acute accent --&gt;
3011
 
    &lt;!ENTITY Icirc  CDATA "&amp;#206;" -- capital I, circumflex accent --&gt;
3012
 
    &lt;!ENTITY Iuml   CDATA "&amp;#207;" -- capital I, dieresis or umlaut mark --&gt;
3013
 
    &lt;!ENTITY ETH    CDATA "&amp;#208;" -- capital Eth, Icelandic --&gt;
3014
 
    &lt;!ENTITY Ntilde CDATA "&amp;#209;" -- capital N, tilde --&gt;
3015
 
    &lt;!ENTITY Ograve CDATA "&amp;#210;" -- capital O, grave accent --&gt;
3016
 
    &lt;!ENTITY Oacute CDATA "&amp;#211;" -- capital O, acute accent --&gt;
3017
 
    &lt;!ENTITY Ocirc  CDATA "&amp;#212;" -- capital O, circumflex accent --&gt;
3018
 
    &lt;!ENTITY Otilde CDATA "&amp;#213;" -- capital O, tilde --&gt;
3019
 
    &lt;!ENTITY Ouml   CDATA "&amp;#214;" -- capital O, dieresis or umlaut mark --&gt;
3020
 
    &lt;!ENTITY times  CDATA "&amp;#215;" -- multiply sign --&gt;
3021
 
    &lt;!ENTITY Oslash CDATA "&amp;#216;" -- capital O, slash --&gt;
3022
 
    &lt;!ENTITY Ugrave CDATA "&amp;#217;" -- capital U, grave accent --&gt;
3023
 
    &lt;!ENTITY Uacute CDATA "&amp;#218;" -- capital U, acute accent --&gt;
3024
 
    &lt;!ENTITY Ucirc  CDATA "&amp;#219;" -- capital U, circumflex accent --&gt;
3025
 
    &lt;!ENTITY Uuml   CDATA "&amp;#220;" -- capital U, dieresis or umlaut mark --&gt;
3026
 
    &lt;!ENTITY Yacute CDATA "&amp;#221;" -- capital Y, acute accent --&gt;
3027
 
    &lt;!ENTITY THORN  CDATA "&amp;#222;" -- capital THORN, Icelandic --&gt;
3028
 
    &lt;!ENTITY szlig  CDATA "&amp;#223;" -- small sharp s, German (sz ligature) --&gt;
3029
 
    &lt;!ENTITY agrave CDATA "&amp;#224;" -- small a, grave accent --&gt;
3030
 
    &lt;!ENTITY aacute CDATA "&amp;#225;" -- small a, acute accent --&gt;
3031
 
    &lt;!ENTITY acirc  CDATA "&amp;#226;" -- small a, circumflex accent --&gt;
3032
 
    &lt;!ENTITY atilde CDATA "&amp;#227;" -- small a, tilde --&gt;
3033
 
    &lt;!ENTITY auml   CDATA "&amp;#228;" -- small a, dieresis or umlaut mark --&gt;
3034
 
    &lt;!ENTITY aring  CDATA "&amp;#229;" -- small a, ring --&gt;
3035
 
    &lt;!ENTITY aelig  CDATA "&amp;#230;" -- small ae diphthong (ligature) --&gt;
3036
 
    &lt;!ENTITY ccedil CDATA "&amp;#231;" -- small c, cedilla --&gt;
3037
 
    &lt;!ENTITY egrave CDATA "&amp;#232;" -- small e, grave accent --&gt;
3038
 
    &lt;!ENTITY eacute CDATA "&amp;#233;" -- small e, acute accent --&gt;
3039
 
    &lt;!ENTITY ecirc  CDATA "&amp;#234;" -- small e, circumflex accent --&gt;
3040
 
    &lt;!ENTITY euml   CDATA "&amp;#235;" -- small e, dieresis or umlaut mark --&gt;
3041
 
    &lt;!ENTITY igrave CDATA "&amp;#236;" -- small i, grave accent --&gt;
3042
 
    &lt;!ENTITY iacute CDATA "&amp;#237;" -- small i, acute accent --&gt;
3043
 
    &lt;!ENTITY icirc  CDATA "&amp;#238;" -- small i, circumflex accent --&gt;
3044
 
    &lt;!ENTITY iuml   CDATA "&amp;#239;" -- small i, dieresis or umlaut mark --&gt;
3045
 
    &lt;!ENTITY eth    CDATA "&amp;#240;" -- small eth, Icelandic --&gt;
3046
 
    &lt;!ENTITY ntilde CDATA "&amp;#241;" -- small n, tilde --&gt;
3047
 
    &lt;!ENTITY ograve CDATA "&amp;#242;" -- small o, grave accent --&gt;
3048
 
    &lt;!ENTITY oacute CDATA "&amp;#243;" -- small o, acute accent --&gt;
3049
 
    &lt;!ENTITY ocirc  CDATA "&amp;#244;" -- small o, circumflex accent --&gt;
3050
 
    &lt;!ENTITY otilde CDATA "&amp;#245;" -- small o, tilde --&gt;
3051
 
    &lt;!ENTITY ouml   CDATA "&amp;#246;" -- small o, dieresis or umlaut mark --&gt;
3052
 
    &lt;!ENTITY divide CDATA "&amp;#247;" -- divide sign --&gt;
3053
 
    &lt;!ENTITY oslash CDATA "&amp;#248;" -- small o, slash --&gt;
3054
 
    &lt;!ENTITY ugrave CDATA "&amp;#249;" -- small u, grave accent --&gt;
3055
 
    &lt;!ENTITY uacute CDATA "&amp;#250;" -- small u, acute accent --&gt;
3056
 
    &lt;!ENTITY ucirc  CDATA "&amp;#251;" -- small u, circumflex accent --&gt;
3057
 
    &lt;!ENTITY uuml   CDATA "&amp;#252;" -- small u, dieresis or umlaut mark --&gt;
3058
 
    &lt;!ENTITY yacute CDATA "&amp;#253;" -- small y, acute accent --&gt;
3059
 
    &lt;!ENTITY thorn  CDATA "&amp;#254;" -- small thorn, Icelandic --&gt;
3060
 
    &lt;!ENTITY yuml   CDATA "&amp;#255;" -- small y, dieresis or umlaut mark --&gt;
3061
 
</pre>
3062
 
<hr>
3063
 
<h2><a name=charset>Table of printable Latin-1 Character codes</a></h2>
3064
 
 
3065
 
<p><img src="http://www.w3.org/TR/REC-html32-19970114/images/images/latin1.gif">
3066
 
 
3067
 
<hr>
3068
 
<h2><a name=acks>Acknowledgements</a></h2>
3069
 
 
3070
 
<p>The author would like to thank the members of the W3C HTML Editorial
3071
 
Review Board, members of the W3C staff, and the many other people who
3072
 
have contributed to this specification.
3073
 
 
3074
 
<hr>
3075
 
<h2><a name=refs>Further Reading</a></h2>
3076
 
 
3077
 
<dl>
3078
 
<dt><b>The World Wide Web Consortium</b>
3079
 
<dd>Further information on W3C activities and pointers to the
3080
 
status of work on HTML and HTTP etc. can be found at
3081
 
<a href="http://www.w3.org/">http://www.w3.org/</a>.
3082
 
Further information on HTML in particular can be found at
3083
 
<a href="http://www.w3.org/pub/WWW/MarkUp/">http://www.w3.org/pub/WWW/MarkUp/</a>.
3084
 
 
3085
 
<dt><b>HTML 2.0 (RFC1866)</b><dd>
3086
 
By Tim Berners-Lee and Dan Connolly, November 1995.
3087
 
Defines the Hypertext Markup Language Specification Version 2.0.
3088
 
Available from <a href="ftp://ds.internic.net/rfc/rfc1866.txt">ftp://ds.internic.net/rfc/rfc1866.txt</a>.
3089
 
 
3090
 
<dt><b>Form-based File Upload in HTML (RFC1867)</b><dd>
3091
 
By E. Nebel and L. Masinter, November 1995. Describes extensions to
3092
 
HTML 2.0 (RFC1866) to support file upload from HTML forms. 
3093
 
Available from <a href="ftp://ds.internic.net/rfc/rfc1867.txt">ftp://ds.internic.net/rfc/rfc1867.txt</a>.
3094
 
 
3095
 
<dt><b>HTML Tables (RFC1942)</b><dd>
3096
 
By Dave Raggett, May 1996. This defines the HTML table model. It is a superset
3097
 
of the table model defined by HTML 3.2.
3098
 
Available from <a href="ftp://ds.internic.net/rfc/rfc1942.txt">ftp://ds.internic.net/rfc/rfc1942.txt</a>,
3099
 
or as a W3C working draft at <a href="http://www.w3.org/pub/WWW/TR/WD-tables">http://www.w3.org/pub/WWW/TR/WD-tables</a>.
3100
 
 
3101
 
<dt><b>A Lexical Analyzer for HTML and Basic SGML</b><dd>
3102
 
By Dan Connolly, June 1996. Describes lexical considerations for parsing
3103
 
HTML documents. Available from <A HREF="http://www.w3.org/pub/WWW/TR/WD-html-lex">http://www.w3.org/pub/WWW/TR/WD-html-lex</A>
3104
 
 
3105
 
<dt><b>The Hypertext Transfer Protocol (HTTP)</b>
3106
 
<dd>Further information of HTTP can be found at:
3107
 
<a href="http://www.w3.org/pub/WWW/Protocols">http://www.w3.org/pub/WWW/Protocols</a>.
3108
 
 
3109
 
<dt><b>A Standard Default Color Space for the Internet - sRGB</b><dd>
3110
 
By Michael Stokes, Mathew Anderson, Srinivasan Chandrasekar and  Ricardo
3111
 
Motta, November 1996. Available from:
3112
 
<a href="http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html">http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html</a>
3113
 
This provides a precise definition for RGB that allows sRGB images
3114
 
to be reproduced accurately on different platforms and media under varying
3115
 
ambient lighting conditions.
3116
 
 
3117
 
</dl>
3118
 
 
3119
 
<P>
3120
 
<A href="http://www.w3.org/Consortium/Legal/ipr-notice.html#Copyright">
3121
 
Copyright</A> &nbsp;&copy;&nbsp; 1997 <A href="http://www.w3.org">W3C</A>
3122
 
(<A href="http://www.lcs.mit.edu">MIT</A>,
3123
 
<A href="http://www.inria.fr/">INRIA</A>,
3124
 
<A href="http://www.keio.ac.jp/">Keio</A> ), All Rights Reserved. W3C
3125
 
<A href="http://www.w3.org/Consortium/Legal/ipr-notice.html#Legal Disclaimer">liability,</A>
3126
 
<A href="http://www.w3.org/Consortium/Legal/ipr-notice.html#W3C Trademarks">trademark</A>,
3127
 
<A href="http://www.w3.org/Consortium/Legal/copyright-documents.html">document
3128
 
use </A>and
3129
 
<A href="http://www.w3.org/Consortium/Legal/copyright-software.html">software
3130
 
licensing </A>rules apply.
3131
 
</P>