-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLists.html
More file actions
executable file
·177 lines (124 loc) · 4.79 KB
/
Lists.html
File metadata and controls
executable file
·177 lines (124 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN">
<HTML>
<HEAD>
<TITLE>Lists and glossaries in HTML</TITLE> <NEXTID
N="z42"></HEAD>
<BODY>
<H1>Forms of list in HTML</H1>
<P>These lists may be nested
<H2><A NAME="z32">Glossaries</A></H2>
<P>A glossary (or definition list) is a list of paragraphs each
of which has a short title alongside it.
Apart from glossaries, this element is useful for presenting
a set of named elements to the reader. The elements within a
glossary follow are introduced by these elements:
<DL>
<DT><A NAME="DT.index">DT</A>
<DD>The "term", typically placed in a wide left indent.
<DT><A NAME="DD.index">DD</A>
<DD>The "definition", which may wrap onto many lines
</DL>
<P>These elements must appear in pairs. Single occurrences of
DT without a following DD are allowed, and have the same significance
as if the DD had been present with no text.
The one attribute which DL can take is
<DL>
<DT>COMPACT
<DD>suggests that a compact rendering be used,
because the enclosed elements are individually small,
or the whole glossary is rather large, or both.
</DL>
<H3>Typical rendering</H3>
<P>The definition list DT, DD pairs are arranged vertically.
For each pair, the DT element is on the left,
in a column of about a third of the display area,
and the DD element is in the right hand two thirds of the display
area. The DT term is normally small enough to fit on one line
within the left-hand column. If it is longer,
it will either extend across the page, in which case the DD section
is moved down to separate them, or it is wrapped onto successive
lines of the left hand column.
<P>This is sometimes implemented with the use of a large negative
first line indent.
<P>White space is typically left between successive DT,DD pairs
unless the COMPACT attribute is given. The COMPACT attribute
is appropriate for lists which are long and/or have DT,DD pairs
which each take only a line or two. It is of course possible
for the rendering software to discover these cases itself and
make its own decisions, and this is to be encouraged.
<P>The COMPACT attribute may also reduce the width of the left-hand
(DT) column.
<H3><A NAME="DL.index">Examples of use</A></H3>
<PRE> <DL>
<DT>Term the first<DD>definition paragraph is reasonably
long but is still displayed clearly
<DT>Term2 follows<DD>Definition of term2
</DL>
<DL COMPACT>
<DT>Term<DD>definition paragraph
<DT>Term2<DD>Definition of term2
</DL>
</PRE>
<H2>Lists</H2>
<P><A NAME="LI.index">A list is a sequence of paragraphs,
each of which may be preceded by a special mark or sequence number.
The syntax is: </A>
<PRE>
<UL>
<LI> list element
<LI> another list element ...
</UL>
</PRE>
<P>The opening list tag may be any of <A
NAME="UL.index">UL</A>, <A NAME="OL.index">OL</A>,
<A NAME="MENU.index">MENU</A> or <A
NAME="DIR.index">DIR</A>. It must be immediately followed by
the first list element.
<H3>Typical rendering</H3>
<P>The representation of the list is not defined here,
but a bulleted list for unordered lists,
and a sequence of numbered paragraphs for an ordered list would
be quite appropriate. Other possibilities for interactive display
include embedded scrollable browse panels.
<P>List elements with typical rendering are:
<DL>
<DT><A NAME="z35">UL</A>
<DD>A list of multi-line paragraphs, typically separated by some
white space and/or marked by bullets, etc.
<DT><A NAME="z41">OL</A>
<DD>As UL, but the paragraphs are typically numbered in some
way to indicate the order as significant.
<DT><A NAME="z36">MENU</A>
<DD>A list of smaller paragraphs. Typically one line per item,
with a style more compact than UL.
<DT><A NAME="z40">DIR</A>
<DD>A list of short elements, typically less than 20 characters.
These may be arranged in columns across the page,
typically 24 character in width. If the rendering software is
able to optimize the column width as function of the widths of
individual elements, so much the better.
</DL>
<H3>Example of use</H3>
<PRE> <A HREF="HTML.dtd.html#z30" NAME="z34"><OL></A>
<A
HREF="HTML.dtd.html#z27" NAME="z33"><LI></A> When you get to the station, leave
by the southern exit, on platform one.
<LI>Turn left to face toward the mountain
<LI>Walk for a mile or so until you reach the
"Asquith Arms" then
<LI>Wait and see...
</OL>
<<A
HREF="HTML.dtd.html#z29" NAME="z38"> MENU</A> >
<LI>The oranges should be pressed fresh
<LI>The nuts may come from a packet
<LI>The gin must be good quality
</MENU>
<<A
HREF="HTML.dtd.html#z31" NAME="z39"> DIR</A> >
<LI>A-H<LI>I-M
<LI>M-R<LI>S-Z
</DIR>
</PRE>
</BODY>
</HTML>